要实现Apache支持shtml伪静态则需要开启SSI并可支持用shtml来include网页文件
1、开conf目录下的httpd.conf文件,搜索“AddType text/html .shtml”,找到
# AddType text/html .shtml
# AddOutputFilter INCLUDES .shtml
把这两行前面的#去掉 。
2、搜索“Options Indexes FollowSymLinks”在搜索到的那一行后面添加“Includes”
即将该行改变为“Options Indexes FollowSymLinks Includes”
3、保存httpd.conf,重起Apache即可。
1、开conf目录下的httpd.conf文件,搜索“AddType text/html .shtml”,找到
# AddType text/html .shtml
# AddOutputFilter INCLUDES .shtml
把这两行前面的#去掉 。
2、搜索“Options Indexes FollowSymLinks”在搜索到的那一行后面添加“Includes”
即将该行改变为“Options Indexes FollowSymLinks Includes”
3、保存httpd.conf,重起Apache即可。