加入收藏 | 设为首页 | 会员中心 | 我要投稿 拼字网 - 核心网 (https://www.hexinwang.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 教程 > 正文

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

发布时间:2021-03-08 18:15:17 所属栏目:教程 来源:网络整理
导读:今天在IXwebhosting主机上安装Discuz论坛,开启伪静态后,发现并不能成功,显示的是404错误页面。原来IXwebhosting不能像支持Wordpress伪静态一样支持Discuz,在wordpress里,只要后台设置永久链接就可以了。而Discuz不行,现在只能用.htaccess文件完成了。

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

(编辑:拼字网 - 核心网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!