制作.htaccess linux 主机将以下代码复制到txt中,另存为.htaccess,然上传到网站根目录。如果出现500错误,可逐行全部添加 # ,然后一行行取消 # 排除语句错误。另外也可以先把文件名命名为 htaccess 上传上去后再在线改名。
RewriteCond %{QUERY_STRING} ^(.*)$
#RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
#RewriteCond %{QUERY_STRING} ^(.*)$
#RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
#RewriteCond %{QUERY_STRING} ^(.*)$
#RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
#RewriteCond %{QUERY_STRING} ^(.*)$
#RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
#RewriteCond %{QUERY_STRING} ^(.*)$
#RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
#RewriteCond %{QUERY_STRING} ^(.*)$
#RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
#RewriteCond %{QUERY_STRING} ^(.*)$
#RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。