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
Free JavaScript Charts Library - JS Charts
Viewed 828 times since Sun, Dec 13, 2009
SEO Poisoning - What are SEO Poisoning Attacks?
Viewed 1079 times since Mon, Apr 5, 2010
How to redirect an old domain to a new domain using htaccess?
Viewed 693 times since Sun, Mar 14, 2010
5 Best Online Diagram Designing Tools
Viewed 7654 times since Sat, Jan 30, 2010
PHP Quiz Questions and Answers
Viewed 2320 times since Mon, Jan 11, 2010
ProFolio - Instantly Create Free Portfolio Website
Viewed 1180 times since Sun, Jan 3, 2010
Free Visualization Components For Flex (AS3)
Viewed 681 times since Sun, Jan 3, 2010
What is rel="nofollow" attribute?
Viewed 689 times since Thu, May 13, 2010
10 AJAX based PHP WebMail Clients
Viewed 950 times since Mon, Jul 26, 2010
Free JavaScript Date Picker - jsDatePick
Viewed 1108 times since Fri, Apr 9, 2010
MENU