Using .htaccess to make all .html pages to run as .php files?

前端 未结 16 1730
忘了有多久
忘了有多久 2020-11-22 00:41

I need to run all of my .html files as .php files and I don\'t have time to change all of the links before our presentation tomorrow. Is there any way to \"hack\" this with

16条回答
  •  半阙折子戏
    2020-11-22 01:27

    Using @Marc-François approach Firefox prompted me to download the html file

    Finally the following is working for me (using both):

    AddType application/x-httpd-php .htm .html AddHandler x-httpd-php .htm .html

提交回复
热议问题