Home :: Blog :: Articles :: Web-Hosting :: How to Change the file type using htaccess

How to Change the file type using htaccess

How to Change the file type using htaccess
Category: Web-Hosting
Posted:
Views: 1360
Comments: 0 [Post]
Synopsis: Make any file be a certain kind of file type Makes image.jpg, index.html, default.cgi all act as php. Use this code in your htaccess file.

Make any file be a certain kind of file type Makes image.jpg, index.html, default.cgi all act as php. Use this code in your htaccess file.


ForceType application/x-httpd-php
SetHandler application/x-httpd-php


Comments on How to Change the file type using htaccess

Start the conversation by being the first to comment!

Share comments

Your Name: *
Comments: *
Please Note: HTML Markup will be automatically removed.
The ability to post urls has been disabled by the site administrator.
*
Type the characters you see in the picture:

*