| |
|
| :: |
| Author |
Message |
linhhuchong
Joined: 25 Nov 2007 Posts: 13
|
Posted: Sun Nov 25, 2007 5:09 pm Post subject: How to install mod rewrite |
|
|
I have install phpbb 2 but i don't know how to install the Mod rewrite kit. Is it just simply copy the htaccess file in the root. Please help  |
|
|
| Back to top |
|
 |
|
 |
coyote phpBB SEO Team

Joined: 11 May 2007 Posts: 72
|
Posted: Sun Nov 25, 2007 5:38 pm Post subject: Re: How to install mod rewrite |
|
|
Hi linhhuchong,
Welcome to phpBB SEO
Have you seen this thread?
http://www.phpbb-seo.com/boards/advanced-mod-rewrite/advanced-seo-url-vt43.html
The download comes with step-by-step directions. In the download there is a folder in the contrib/ directory called htaccess. Inside that folder are two more folders, one called root-install and one called folder-install. In each folder is a premade .htaccess file, depending on whether your forum is installed at the root directory or not. If you can access your forum by typing in -www.yourdomain.com then you would use the .htaccess file for the root. If you access your forum by typing in -www.yourdomain.com/forum/ then your phpBB is in a folder, and you need to use the other .htaccess file.
Make sure that the name of the folder that phpBB2 is in (if applicable) matches the name of the folder in the .htaccess file. So if your phpBB is in a folder called forum/, you need to change the .htaccess file to reflect:
CHANGE (this is only if your phpbb2 installation is in a folder)
| Code: | #########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^phpbb/index\.html$ /phpbb/index.php [QSA,L,NC]
# FORUM PROTECTION RULE
# RewriteRule ^phpbb/[a-z0-9_-]*/([^/]+\.html)$ /phpbb/index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^phpbb/[a-z0-9_-]*-c([0-9]+)\.html$ /phpbb/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^phpbb/[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ /phpbb/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^phpbb/[a-z0-9_-]*-f([0-9]+)\.html$ /phpbb/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^phpbb/[a-z0-9_-]*-t([0-9]+)-([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^phpbb/[a-z0-9_-]*-t([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^phpbb/post([0-9]+)\.html$ /phpbb/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^phpbb/member([0-9]+)\.html$ /phpbb/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
|
TO
| Code: | #########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^forum/index\.html$ /forum/index.php [QSA,L,NC]
# FORUM PROTECTION RULE
# RewriteRule ^forum/[a-z0-9_-]*/([^/]+\.html)$ /forum/index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^forum/[a-z0-9_-]*-c([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^forum/[a-z0-9_-]*-t([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^forum/[a-z0-9_-]*-t([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^forum/member([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
|
Hope this helps.  |
|
|
| Back to top |
|
 |
linhhuchong
Joined: 25 Nov 2007 Posts: 13
|
Posted: Mon Nov 26, 2007 6:25 am Post subject: Re: How to install mod rewrite |
|
|
Thanks Coyote,
My forum is in the root. I have upload the htaccess file but nothings happened then. Is there a version of phpbb that already include Mod-rewrite. This is my new forum |
|
|
| Back to top |
|
 |
coyote phpBB SEO Team

Joined: 11 May 2007 Posts: 72
|
Posted: Mon Nov 26, 2007 6:48 pm Post subject: Re: How to install mod rewrite |
|
|
Oh no, there's a lot more to it than just uploading the .htaccess file. There is a list of files to be uploaded and a few file edits to be done. It's all in the instructions when you download phpBB SEO Advanced Mod Rewrite. Be sure to look closely at the Installation Instructions. It's a fairly easy mod to add and it really will work if you follow the directions to the letter.
There is a version of phpBB with the SEO mods already built-in, but it's a phpBB3 premod.
I'm working on a phpBB2 premod with the entire suite of SEO mods, but it won't be ready for another couple weeks.  |
|
|
| Back to top |
|
 |
linhhuchong
Joined: 25 Nov 2007 Posts: 13
|
Posted: Tue Nov 27, 2007 5:23 am Post subject: Re: How to install mod rewrite |
|
|
Thank you very much friend!!
I have installed the phpbb3 premod successfully and are working with it.
Maybe i'm gonna ask you a few questions regard this php  |
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|