国内最全IT社区平台 联系我们 | 收藏本站
华晨云阿里云优惠2
您当前位置:首页 > php开源 > Discuz > IXwebhosting主机 Discuz!论坛伪静态的方法

IXwebhosting主机 Discuz!论坛伪静态的方法

来源:程序员人生   发布时间:2014-02-13 02:16:26 阅读次数:4022次

  今天在IXwebhosting主机上安装Discuz论坛,开启伪静态后,发现并不能成功,显示的是404错误页面。原来IXwebhosting不能像支持Wordpress伪静态一样支持Discuz,在wordpress里,只要后台设置永久链接就可以了。而Discuz不行,现在只能用.htaccess文件完成了。

  我在网上找了规则,上传到根目录就可以使用了,下面是.htaccess伪静态规则:

RewriteEngine On
RewriteBase /
RewriteRule ^archiver/((fid|tid)-[w-]+.html)$ archiver/index.php?$1
RewriteRule ^forum-([0-9]+)-([0-9]+).html$ forumdisplay.php?fid=$1&page=$2
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+).html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2
RewriteRule ^space-(username|uid)-(.+).html$ space.php?$1=$2
RewriteRule ^tag-(.+).html$ tag.php?name=$1

 

  来自:www.Gonten.com

生活不易,码农辛苦
如果您觉得本网站对您的学习有所帮助,可以手机扫描二维码进行捐赠
程序员人生
------分隔线----------------------------
分享到:
------分隔线----------------------------
关闭
程序员人生