找回密码
 立即注册

微信登录

只需一步,快速开始

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 23|回复: 0

建站帮助:WordPress博客伪静态规则

[复制链接]

137

主题

4

回帖

117 小时

在线时间

爱薪觉萝.缺钱

积分
8009
发表于 7 天前 | 显示全部楼层 |阅读模式
因我们的服务器系统采用的IIS8.5版本,因此wordpress伪静态规则文件必须为web.config,规则内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<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>
您可以新建一个记事本,将以上代码复制进去,然后保存为web.config,然后将web.config上传到wwwroot目录即可实现wordpress伪静态访问!
贡献值排行榜:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
鸿帅站长社区:
http://WapHui.Com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|鸿帅站长社区-电商创业资讯门户

GMT+8, 2024-9-20 04:24

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表