欢迎来到站长天空!

WordPress

当前位置: 主页 > CMS教程 > WordPress

WordPress教程:IIS7中wordpress伪静态web.config规则

时间:2025-10-18 15:32:44|栏目:WordPress|点击:

1.后台设置你需要的“固定链接”- “常用设置”-“自定义结构”

/%category%/%post_id%.html

2.创建web.config文件,然后上传到网站根目录

<?xml version="1.0" encoding="UTF-8"?> 
<configuration>  <system.webServer> 
<rewrite> 
<rules><clear/> 
<rule name="chinese tag" stopProcessing="true"><match url="/tag/(.*)"/> 
<conditions logicalGrouping="MatchAll"/> 
<action type="Rewrite" url="/index.php?tag={R:1}"/> 
</rule> 
<rule name="wordpress" 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>

注:只有空间安装了IIS官方推出的URL Rewrite组件之后才有效.

完成以上两步即可


上一篇:如何限制WordPress留言的长度

栏    目:WordPress

下一篇:WordPress文章编辑器可视化/文本切换消失的解决方法

本文标题:WordPress教程:IIS7中wordpress伪静态web.config规则

本文地址:https://zz.feitang.co/CMSjiaocheng/25045.html

广告投放 | 联系我们 | 版权申明

申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:257218569 | 邮箱:257218569@qq.com

Copyright © 2018-2025 站长天空 版权所有 Powered by EyouCms冀ICP备14023439号