GoDaddy windows主机 Discuz! X1伪静态设置方法
Discuz! X在Godaddy的Windows主机也是可以设置伪静态的,方法:复制以下代码,另存为web.config,上传到论坛安装的目录下。经过本人在免费空间上测试可用。
另外提醒, GoDaddy iis 7的主机才支持伪静态模块.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="topic">
<match url="^topic-(.+)\.html$" />
<action type="Rewrite" url="portal.php?mod=topic&topic={R:1}" />
</rule>
<rule name="article">
<match url="article-([0-9]+)\.html$" />
<action type="Rewrite" url="portal.php?mod=view&aid={R:1}" />
</rule>
<rule name="forum">
<match url="^forum-([0-9]+)-([0-9]+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="forum.php?mod=forumdisplay&fid={R:1}&page={R:2}" appendQueryString="false" />
</rule>
<rule name="thread">
<match url="^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" />
<action type="Rewrite" url="forum.php?mod=viewthread&tid={R:1}&extra=page={R:2}&page={R:3}" />
</rule>
<rule name="group">
<match url="^group-([0-9]+)-([0-9]+)\.html$" />
<action type="Rewrite" url="forum.php?mod=group&fid={R:1}&page={R:2}" />
</rule>
<rule name="space">
<match url="^space-(username|uid)-(.+)\.html$" />
<action type="Rewrite" url="home.php?mod=space&{R:1}={R:2}" />
</rule>
<rule name="Xrewrite">
<match url="^([a-z]+)-(.+)\.html$" />
<action type="Rewrite" url="{R:1}.php?rewrite={R:2}" />
</rule>
</rules>
</rewrite>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true" />
</system.webServer>
<system.web>
<customErrors mode="Off" />
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />
</system.web>
</configuration>以上就是GoDaddy windows主机 Discuz! X1伪静态设置方法,之前我们也讨论过GoDaddy windows主机 Discuz! X2伪静态设置方法,其实原理多是一样的。
更多伪静态问题可以参考 【总结】GoDaddy主机discuz ,PHPwind 伪静态设置教程
本博目前暂不支持留言回复,若有问题建议到美国主机侦探论坛GoDaddy板块咨询.