Htaccess - обработка php в html файле

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Версия от 18:23, 16 января 2015; Admin iph (обсуждение | вклад) (Новая страница: «link=https://bit.ly/3tbFsd6| Самые выгодные сервера‎ === Включение обработк...»)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к:навигация, поиск

Самые выгодные сервера‎


Включение обработки 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