Godaddy Linux主机设置Discuz伪静态方法
这几天Godaddy 4GH主机在搞活动,半价优惠折扣。有人在GD主机中(Linux)中搭建discuz做论坛社区,需要使用到伪静态。我们在后台启动伪静态后,还需要在根目录放htaccess文件才可以执行。文件如下:
# 将 RewriteEngine 模式打开
RewriteEngine On# 修改以下语句中的 /discuz 为你的论坛目录地址,如果程序放在根目录中,请将 /discuz 修改为 /
RewriteBase /# Rewrite 系统规则请勿修改
RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1
RewriteRule ^article-([0-9]+)\.html$ portal.php?mod=article&articleid=$1
RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1page=$2
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2
RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2
RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2
RewriteRule ^([a-z]+)-(.+)\.html$ $1.php?rewrite=$2
知道怎么做了吧?
本文原创固定地址:http://www.goyouhuima.com/jiaocheng/637.html ,转载请注明出处!