博客已经搬家很久了,一直没开张!主要是近期比较忙,没有时间运营。现在有空了,就来重新运营博客。由于原主机到期,数据删除。导致博客数据丢失。现以找回部分数据。(本人已经尽力了)wordpress博客中一般都会设置伪静态,我按照老的办法去使用httpd.ini(iis)结果失败。问度娘,原来iis7已经有了新的设置方法。不多说了,下面直接贴上方法:
1.在本地新建一个txt文件,命名为Web.txt
2.写入如下内容
<?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>
3.传至wordpress根目录,更名为Web.config
4.愉快的去后台设置吧!!!
本教程到此结束,欢迎围观
评论 (0)