Enable Rewrite Option for Discuz!
>> Sunday, April 19, 2009
First, Go to your Backend admin and find option like images above, and then chose what you want to rewrite.
1. Page List of Theme = Rewrite option when you go to Sub forum
2. The theme of the content = When you go to Someone Post / Thread
3. Personal Data page(space.php)= When you go to Someone Profile
4. Tag page(tag.php)Of static = (YOURDOMAINNAME)/tag.php
5. Discuz! Archiver Of static = Rewrite for Discuz Archiver
but dont Submit, First you need to upload or make new file named by .htaccess in your discuz folder. And copy code below
RewriteEngine On
RewriteBase /
RewriteRule ^archiver/([a-z0-9\-]+\.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 ^profile-(username|uid)-(.+)\.html$ viewpro.php?$1=$2
RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2
RewriteRule ^tag-(.+)\.html$ tag.php?name=$1
RewriteBase:
http://(YOURDOMAINNAME) => RewriteBase /
http://(YOURDOMAINNAME)/forum => RewriteBase /forum
0 comments:
Post a Comment