Godaddy wordpress的伪静态方法
1、方法很简单,只需要新建两个文件就可以了。两个文件一个放在根目录,一个放在你网站所在的目录。(我的网站安装在子目录)
2、第一个文件,命名为web.config代码1:(适用于GoDaddy Windows IIS6的web.config代码)<!-- Web.Config Conf足毂忍珩iguration File --><configuration><system.web><customErrors mode="Off"/></system.web></configuration>代码2:Windows IIS7的用户使用下面的代码:<configuration><system.webServer><httpErrors errorMode="Detailed" /><asp scriptErrorSentToBrowser="true"/></system.webServer><system.web><customErrors mode="Off"/><compilation debug="true"/></system.web></configuration>这个放在根目录,如果没有子目录的话就直接放在安装网站的位置。
3、第二个文件,同样命名为web.config代码为:<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>这个文件放在你安装网站的的子目录里面。
4、分别上传这两个文件,然后wordpress后台设置好固定链接样式,刷新首页,网站就可以正常打开了。