Article Diary - General Knowledge Digest

How to change the file type using htaccess?

Use the following htaccess code to make any file be a certain kind of file type. The htaccess code below makes image.jpg, index.html, default.cgi all act as php. Put this code in your htaccess file.

ForceType application/x-httpd-php
SetHandler application/x-httpd-php
Attached Files
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Name
Email
Security Code Security Code
Related Articles RSS Feed
PHP Quiz Questions and Answers
Viewed 4813 times since Mon, Jan 11, 2010
ZeusCart | Feature Rich Open Source E-Commerce System
Viewed 1952 times since Thu, Jul 15, 2010
How to password protect folder/files using htaccess file?
Viewed 1292 times since Sun, Mar 14, 2010
Facebook Style Chat Script - ArrowChat
Viewed 1408 times since Tue, Aug 3, 2010
OpenCart - Open Source Shopping Cart
Viewed 1873 times since Fri, Jan 1, 2010
Web Form Elements in PSD Format
Viewed 1303 times since Sun, Dec 27, 2009
jQuery MultiSelect Plugin with ThemeRoller Support
Viewed 2838 times since Thu, Feb 4, 2010
SEO (Search Engine Optimization) vs SEM(Search Engine Marketing)
Viewed 1059 times since Mon, Jul 12, 2010
MENU