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
Geo-location Mapping With Google Maps API & PHP
Viewed 1218 times since Mon, Apr 4, 2011
13 Useful Javascript Syntax Highlighting Scripts
Viewed 1232 times since Mon, Jan 4, 2010
45 jQuery Navigation Plugins and Tutorials
Viewed 2199 times since Thu, Jan 28, 2010
10 Most Popular JavaScript Frameworks
Viewed 927 times since Thu, Jul 8, 2010
Google Maps jQuery Plugin
Viewed 948 times since Thu, Jan 7, 2010
Speech Bubbles With Pure CSS3
Viewed 883 times since Fri, Mar 12, 2010
ICEpdf - Open Source Java PDF Library
Viewed 1176 times since Wed, Jan 6, 2010
ProFolio - Instantly Create Free Portfolio Website
Viewed 1314 times since Sun, Jan 3, 2010
Open Source WYSIWYG Editor
Viewed 1214 times since Thu, Jan 7, 2010
10 AJAX based PHP WebMail Clients
Viewed 1076 times since Mon, Jul 26, 2010