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.
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
Web Application Security Tools & Scanner Applications
Viewed 1350 times since Mon, Mar 22, 2010
Open Source Web Analytics Framework
Viewed 892 times since Sat, Jan 30, 2010
Google Skipfish - Web Application Security Scanner
Viewed 1103 times since Mon, Mar 22, 2010
dygraphs JS Charts - Free JavaScript Charts
Viewed 996 times since Sun, Dec 13, 2009
JavaScript Tree Menu Component - jsTree Menu
Viewed 1611 times since Sat, Jan 9, 2010
What is rel="nofollow" attribute?
Viewed 816 times since Thu, May 13, 2010
jQuery Dropdown Check List
Viewed 1330 times since Thu, Jan 14, 2010
Create Glowing, Radioactive Buttons with CSS
Viewed 1008 times since Sun, Dec 27, 2009
jCart - Free PHP AJAX Shopping Cart
Viewed 1304 times since Sun, Jan 3, 2010
MENU