Godaddy iis7 windows主机 discuz7.X伪静态设置
Godaddywindows主机iis 7 是支持伪静态(url rewrite)的, 也就是说GoDaddy的主机都支持伪静态.
windows主机安装discuz程序 要实现伪静态需要在web.config文件里写上原本对应于linux主机的.htaccess文件代码.
把下面的内容保存成web.config 并传到bbs目录下 ,并在后台启用静态化(可以搜本博以前的帖子)
GoDaddy windows主机discuz伪静态代码如下:
<?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><rewrite><rules><rule name="Imported Rule 17"><match url="^archiver/((fid|tid)-[\w\-]+\.html)$" ignoreCase="false" /><action type="Rewrite" url="archiver/index.php?{R:1}" appendQueryString="false" /></rule><rule name="Imported Rule 18"><match url="^forum-([0-9]+)-([0-9]+)\.html$" ignoreCase="false" /><action type="Rewrite" url="forumdisplay.php?fid={R:1}&page={R:2}" appendQueryString="false" /></rule><rule name="Imported Rule 19"><match url="^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" ignoreCase="false" /><action type="Rewrite" url="viewthread.php?tid={R:1}&extra=page\%3D{R:3}&page={R:2}" appendQueryString="false" /></rule><rule name="Imported Rule 20"><match url="^space-(username|uid)-(.+)\.html$" ignoreCase="false" /><action type="Rewrite" url="space.php?{R:1}={R:2}" appendQueryString="false" /></rule><rule name="Imported Rule 21"><match url="^tag-(.+)\.html$" ignoreCase="false" /><action type="Rewrite" url="tag.php?name={R:1}" appendQueryString="false" /></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伪静态设置方法
本代码经美国主机侦探论坛会员测试成功,可放心使用
版权声明:本站内容源自互联网,如有内容侵犯了你的权益,请联系删除相关内容。