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
0 (0)
Article Rating (No Votes)
Rate this article
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
10 AJAX based PHP WebMail Clients
Viewed 1883 times since Mon, Jul 26, 2010
Google Skipfish - Web Application Security Scanner
Viewed 1325 times since Mon, Mar 22, 2010
Tiny Flash MP3 Audio Player
Viewed 1158 times since Wed, Jan 6, 2010
Open Source Online Invoice System - siwapp
Viewed 1561 times since Thu, Jan 7, 2010
Free Android GUI PSD File
Viewed 1509 times since Fri, Dec 4, 2009
How to change default web page using htaccess?
Viewed 1516 times since Sun, Mar 14, 2010
Free 3D Flash Image Slider - Piecemaker
Viewed 2060 times since Sun, Apr 4, 2010
How can I change session timeout value?
Viewed 1124 times since Tue, Apr 27, 2010