最新消息:伪静态技术大全博客开通啦!再也不为伪静态东奔西走!更多问题可以反映给博主:野狼,QQ1615241386 QQ交流群:112696646

z-blog的伪静态规则 IIS7.5以上

z-blog的php版本的伪静态规则(IIS版本):

<rule name="yys1" stopProcessing="true">
<match url="." ignoreCase="false" />
  <conditions>
    <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
  </conditions>
<action type="Rewrite" url="/index.php" />
</rule>

这个伪静态规则,主要就是把所有的链接内容,都映射到首页入口程序index.php上。但与其他的程序不同的是,有一些程序是通过一个参数传递网址链接的。而z-blog并没有那样传递。

当然,不一样的服务器环境,规则也不同。您可以通过我们的伪静态转换工具,把IIS伪静态规则,转成nginx 或者是apache的。工具链接如下:

IIS伪静态规则转nginx规则:https://www.weijingtai.org/tool/iis2nginx.html

IIS伪静态规则转apache规则:https://www.weijingtai.org/tool/iis2apache.html

发表评论
请遵守网络文明公约,理性发言
访客头像

还没有人来评论,快来抢个沙发吧!