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.
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 Glowing, Radioactive Buttons with CSS
Viewed 1166 times since Sun, Dec 27, 2009
Geo-location Mapping With Google Maps API & PHP
Viewed 1512 times since Mon, Apr 4, 2011
ValidForm Builder - Creating Forms With Validation
Viewed 1076 times since Wed, Apr 21, 2010
ICEpdf - Open Source Java PDF Library
Viewed 1387 times since Wed, Jan 6, 2010
TinyBox - JavaScript Lightweight Modal Window Popup Script
Viewed 1675 times since Fri, Jan 8, 2010
50 Free And Quality Web Icons
Viewed 1655 times since Tue, Jan 5, 2010
How to change default web page using htaccess?
Viewed 1440 times since Sun, Mar 14, 2010
PHP Quiz Questions and Answers
Viewed 3822 times since Mon, Jan 11, 2010
SEO Poisoning - What are SEO Poisoning Attacks?
Viewed 1445 times since Mon, Apr 5, 2010
Open Source Online Invoice System - siwapp
Viewed 1467 times since Thu, Jan 7, 2010