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

前端 未结 16 1469
忘了有多久
忘了有多久 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:35

    On Dreamhost Servers you can refer to this page that at time of writing indicates you may use the following for php 7.2 with FastCGI:

    AddHandler fcgid-script .html
    FcgidWrapper "/dh/cgi-system/php72.cgi" .html
    

    Or if you are using php5 cgi (not FastCGI):

    AddHandler php5-cgi .html
    

提交回复
热议问题