iis8 下的wecenter伪静态配置

liujiazhong
liujiazhong 这家伙很懒,还没有设置简介

1 人点赞了该文章 · 3305 浏览

据说wecenter伪静态和wordpress一致。  IIS的伪静态实现规则和apache不一样,需要装一个rewrite的IIS模块, 在网站根目录下新建一个web.config文件放在网站根目录,内容如下:   <?xml version="1.0" encoding="UTF-8"?> <configuration>  <system.webServer>  <rewrite>  <rules>  <rule name="WeCenter" patternSyntax="Wildcard">  <match url="*"/>  <conditions>  <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>  <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>  </conditions>  <action type="Rewrite" url="index.php"/>  </rule></rules>  </rewrite>  </system.webServer> </configuration>     附件是配置好了web.config,解压即可。

发布于 2016-03-16 23:42

免责声明:

本文由 liujiazhong 原创发布于 WeCenter ,著作权归作者所有。

登录一下,更多精彩内容等你发现,贡献精彩回答,参与评论互动

登录! 还没有账号?去注册

dotor
2018-03-26 10:06
还是404啊。
大哥
2017-06-02 15:07
中文用户还是提示404,搜索好像也不能用
子陶
2016-08-29 09:24
好用,好用,好用!!!!!!!!!!