Htaccess - обработка php в html файле
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Включение обработки php кода в html файле
To enable this feature you should add the following line in your .htaccess file:
AddType application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml .html .htm
Then create simple index.html like this:
index.html <?php header('Location: http://google.com'); ?>
Open index.html in your browser and you must see redirection to google.com