如何让apache支持.shtml 让apache支持include标签
如何让apache支持.shtml 让apache支持include标签
第一步,修改httpd.conf文件中,增加文件后缀AddType text/html .shtml .html
AddOutputFilter INCLUDES .shtml .htmlAddHandler server-parsed .shtml .html
第二步:继续修改,增加options属性
<Directory />
OptionsFollowSymLinksMultiViewsIncludes
AllowOverrideNone
Allowfromall
</Directory>然后搜索“Options Indexes FollowSymLinks” 【一定要找到你自己项目运行的目录】
在搜索到的那一行后面添加“Includes”
即将该行改变为 Options Indexes FollowSymLinks Includes重启即可
包含用法:
<!--#include file="sinykk.shtml"-->
相关推荐
89243453 2020-08-24
Erick 2020-08-21
earthhouge 2020-07-19
klarclm 2020-06-14
拉斯厄尔高福 2020-06-02
Jaystrong 2020-06-02
hongsheyoumo 2020-06-02
twater000 2020-05-30
adonislu 2020-05-17
Haopython 2020-05-09
浅梦墨汐 2020-05-12
shenwenjie 2020-05-09
fengjing81 2020-05-08
lihuifei 2020-05-04
wbczyh 2020-05-03
LychieFan 2020-04-30
luckymaoyy 2020-04-25
Cypress 2020-04-25