许多网站为了做seo优化,都把页面做成静态页面,方便搜索引擎的抓取,许多静态页面都是做成shtl页面的,这样做的好处是shtml页面可以包含html和htm文件! 下面讲解下iis配置方法,让
什么是s html 呢? 使用SSI(ServerSide Include)的html文件扩展名,SSI(Server Side Include),通常称为服务器端嵌入或者叫服务器端包含,是一种类似于ASP的基于服务器的网页制作技术。默认扩展名
这篇文章主要介绍了Apache支持 shtml和include文件解析的相关资料,需要的朋友可以参考下 Apache支持include文件解析shtml首先要应该修改Apache配置文件httpd.conf 1. 确认加载include.so模块,将注释
修改 Apache 配置文档 httpd.conf 增加: AddType text/ html .s html AddOutputFilter INCLUDES . shtml 再在 Directory //Directory 中加上: Options FollowSymLinks MultiViews Includes 记得重启Apache
nginx.conf配置文件http里添加: ssi on; ssi_silent_errors on; ssi_types text/shtml; 然后保存,重启nginx即可。
配置Apache支持cgi、SSI、shtml,供大家学习参考