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


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

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

Copy to ClipboardLiehuo.Net Codes引用的内容:[www.veryhuo.com] 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

相关内容