Godaddy wordpress的伪静态方法

 时间:2024-10-14 11:03:22

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后台设置好固定链接样式,刷新首页,网站就可以正常打开了。

  • wordpress伪静态怎么做
  • wordpress伪静态的操作技术方法
  • Win主机下设置WordPress伪静态的方法
  • GoDaddy主机教程之一键安装WordPress教程
  • 如何提升GoDaddy的主机速度
  • 热门搜索
    如何查询公积金余额 安徽旅游局 如何选股 内蒙古旅游网 汽车折旧怎么算 营业执照到期了怎么办 埃及旅游攻略 北京冬季旅游攻略 鄂e是哪里的车牌号码 如何购买股票