Please wait while we load your page...


HTACCESS Magic :: Article :: Disguise Script Extensions

Results 1 to of

Disguise Script Extensions

It is possible to disguise one file extension for another one. For example, let's say you want HTML files to act and be executed as PHP files, then you just need to add the following line to your .htaccess file:

AddType application/x-httpd-php .html

All HTML files will be executable as PHP: you can embed PHP code in the file. Or, you can limit to one file:

<Files index.html>
SetHandler application/x-httpd-php

In this case, only the index.html file will be executable as PHP.

Last Revised: 2015-08-26

Live Chat Not Available