How to parse PHP syntax in a .html file on server?

后端 未结 4 616
一向
一向 2021-01-22 07:29

This feels like an extremely n00b question, but here goes...

I have a series of HTML files with a small amount of HTML content inside each (exported from a live system).

4条回答
  •  孤街浪徒
    2021-01-22 07:59

    ModRewrite

    RewriteEngine on
    RewriteRule ^(.*).html$ $1.php
    

    AddType

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

提交回复
热议问题