China
|
本帖最后由 alen 于 2013-1-13 15:16 编辑
I use bluehost for my site.It support rewrite.
But i did it as instruction,failed.
My DZX2.5 is set up at public_html/forum
seo setting-URL-checked all,then submitted,cliked right above "rewrite '
I choosed Apache Web Server(virture) My host is linux apache
RewriteEngine On
RewriteBase /forum
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} ^(.*)$
Then copied above to .htaccess,uploaded to public_html
Then updated cache.
But when i open the forum,i said 404 error.
Please help.
|
|