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
Free Visualization Components For Flex (AS3)
Viewed 1110 times since Sun, Jan 3, 2010
Ajaxed MySQL Table Editor
Viewed 1528 times since Tue, Oct 13, 2009
What is Search Engine Optimization?
Viewed 1603 times since Fri, Jun 25, 2010
Advanced Backup System - PHP Backup Script
Viewed 1381 times since Wed, Jul 28, 2010
jQuery Dropdown Check List
Viewed 1595 times since Thu, Jan 14, 2010
Web Form Elements in PSD Format
Viewed 1242 times since Sun, Dec 27, 2009
ProFolio - Instantly Create Free Portfolio Website
Viewed 1749 times since Sun, Jan 3, 2010
Create Dynamic Tabs with jQuery
Viewed 1191 times since Sat, Feb 6, 2010
Google Maps jQuery Plugin
Viewed 1276 times since Thu, Jan 7, 2010
What is jQuery?
Viewed 1065 times since Tue, Dec 1, 2009