配置 httpd.conf 文件
去掉 AddType text/html .shtml ,AddOutputFilter INCLUDES .shtml 注释
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
查找 Options Indexes FollowSymLinks 在后面加上INCLUDES
# Options FollowSymLinks
# AllowOverride None
# Order deny,allow
# Deny from all
Options Indexes FollowSymLinks INCLUDES
(Options Indexes FollowSymLinks Includes 这里大小写貌似无所谓 保存httpd.conf,重起apache即可)
设置apache字符集:
添加如下语句 AddDefaultCharset UTF-8 注意这里是在 </IfModule> 标签中添加。
重新启动apache后 shtml就可以加载页面了。
shtml页面语法<!--#include virtual="/indfoot.shtml"-->
去掉 AddType text/html .shtml ,AddOutputFilter INCLUDES .shtml 注释
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
查找 Options Indexes FollowSymLinks 在后面加上INCLUDES
# Options FollowSymLinks
# AllowOverride None
# Order deny,allow
# Deny from all
Options Indexes FollowSymLinks INCLUDES
(Options Indexes FollowSymLinks Includes 这里大小写貌似无所谓 保存httpd.conf,重起apache即可)
设置apache字符集:
添加如下语句 AddDefaultCharset UTF-8 注意这里是在 </IfModule> 标签中添加。
重新启动apache后 shtml就可以加载页面了。
shtml页面语法<!--#include virtual="/indfoot.shtml"-->