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
CSS Positioning - Absolute, Relative & Fixed
Viewed 1513 times since Thu, Dec 3, 2009
8 Basics of Regular Expressions
Viewed 1132 times since Mon, Mar 8, 2010
Web Usability Testing Tool - Clixpy
Viewed 1578 times since Sat, Jan 9, 2010
AeroSQL - Web Based MySQL Management
Viewed 1304 times since Wed, Feb 24, 2010
Open Source WYSIWYG Editor
Viewed 1449 times since Thu, Jan 7, 2010
Open Source Trouble Ticket System - Jutda Helpdesk
Viewed 2141 times since Sat, Jan 9, 2010
What is jQuery?
Viewed 1004 times since Tue, Dec 1, 2009
Search Engine Optimization: Tags of Importance for SEO
Viewed 1109 times since Tue, Oct 12, 2010
mbSlider - Highly Customizable Content Slider
Viewed 1139 times since Mon, Jul 26, 2010
Web Application Security Tools & Scanner Applications
Viewed 1501 times since Mon, Mar 22, 2010