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
Create Dynamic Tabs with jQuery
Viewed 691 times since Sat, Feb 6, 2010
Best Free Web Icons for Different Purposes
Viewed 785 times since Mon, Dec 28, 2009
Review of Mobile Web Application Frameworks
Viewed 1014 times since Mon, May 9, 2011
Web Usability Testing Tool - Clixpy
Viewed 982 times since Sat, Jan 9, 2010
Speech Bubbles With Pure CSS3
Viewed 679 times since Fri, Mar 12, 2010
How do I add and register extra domain names?
Viewed 2564 times since Fri, Oct 9, 2009
Easy Slider jQuery Plugin - Easy Image or Content Slider
Viewed 993 times since Tue, Jan 12, 2010
ICEpdf - Open Source Java PDF Library
Viewed 971 times since Wed, Jan 6, 2010
MENU