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.
There are no comments for this article. Be the first to post a comment.
Security Code Security Code
Related Articles RSS Feed
Create Glowing, Radioactive Buttons with CSS
Viewed 650 times since Sun, Dec 27, 2009
Free Visualization Components For Flex (AS3)
Viewed 531 times since Sun, Jan 3, 2010
JavaScript Tree Menu Component - jsTree Menu
Viewed 1156 times since Sat, Jan 9, 2010
8 Basics of Regular Expressions
Viewed 698 times since Mon, Mar 8, 2010
File Upload in PHP - PHP File Upload Script
Viewed 1592 times since Thu, Nov 5, 2009
Free 3D Flash Image Slider - Piecemaker
Viewed 1197 times since Sun, Apr 4, 2010
CSS Positioning - Absolute, Relative & Fixed
Viewed 922 times since Thu, Dec 3, 2009
Open Source Online Invoice System - siwapp
Viewed 918 times since Thu, Jan 7, 2010