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

  今天在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

相关文章

**本资源可免费获取,请至尾部读阅!**Discuz素材资源交易论...
分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风...
最近工作需要IIS,自己的电脑又是Windows7系统,找了下安装的...
首先就是discuz,用起来真的是特别的好用,搭建的网站真的非...
1.找到图片路径拼装文件首先打开根目录下的template目录找到...
打开NavicatforMySQL找到数据表 pre_ucenter_members 把密...