如何让apache支持.shtml 让apache支持include标签
第一步,修改httpd.conf文件中,增加文件后缀<br>addtype text/html .shtml .html
addoutputfilter includes .shtml .html<br>addhandler server-parsed .shtml .html
第二步:继续修改,增加options属性
<directory /> <br> options followsymlinks multiviews includes <br> allowoverride none <br> allow from all <br> </directory>
然后搜索“options indexes followsymlinks” 【一定要找到你自己项目运行的目录】<br>在搜索到的那一行后面添加“ includes”<br>即将该行改变为 options indexes followsymlinks includes
重启即可
包含用法:
<!--#include file="sinykk.shtml"-->
第一步,修改httpd.conf文件中,增加文件后缀<br>addtype text/html .shtml .html
addoutputfilter includes .shtml .html<br>addhandler server-parsed .shtml .html
第二步:继续修改,增加options属性
<directory /> <br> options followsymlinks multiviews includes <br> allowoverride none <br> allow from all <br> </directory>
然后搜索“options indexes followsymlinks” 【一定要找到你自己项目运行的目录】<br>在搜索到的那一行后面添加“ includes”<br>即将该行改变为 options indexes followsymlinks includes
重启即可
包含用法:
<!--#include file="sinykk.shtml"-->