宝塔环境下 进入宝塔web管理 网站管理 设置
如果是宝塔玩家肯定都懂 或者知道在哪 这就不细说了。 另外iis需要 确认IIS 7.5是否安装IIS URL Rewrite
最后在WordPress后台 设置 固定链接内 写下 下面的地址即可。
/archives/%post_id%.html
——————————————————————分割线
也可以用 写入 web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="已导入的规则 1" stopProcessing="true">
<match url="^index\.php$" ignoreCase="false" />
<action type="Rewrite" url="?C" />
</rule>
<rule name="已导入的规则 2" stopProcessing="true">
<match url="." ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<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>
</rules>
</rewrite>
</system.webServer>
</configuration>
当然也可以导入 和上面效果是一样的
写下面的地址即可。
/%post_id%.html 博客设置固定连接地址
个人遇到的问题 特写日志 以备后用
评论前必须登录!
注册