| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
jaeysson
Joined: 10 Jan 2007 Posts: 5
|
Posted: Thu Mar 13, 2008 6:50 pm Post subject: Will this mod work if the root of the forum was changed? |
|
|
Hi,
This question may completely show my misunderstanding of this plugin but I'm going to ask anyway.
I recently upgraded from PHPBB2.0 to 3.0. I changed my PHPBB root directory from -http://www.example.com/forum to -http://www.example.com/keyword-rich-forum.
The original forum has been indexed by the search engines. The new forum has not been indexed yet. Will this mod redirect the old forum to the new forum? Or is it a simple fix like adding a redirect to my htaccess file?
Thanks!
jaeysson |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Sun Mar 23, 2008 1:49 pm Post subject: Re: Will this mod work if the root of the forum was changed? |
|
|
You need to implement HTTP 301 redirection from the old directory to the new one, otherwise, all your old url will be 404 and your new location will look like a complete new forum for SE.
This can be done in the .htaccess, you could add this :
| Code: | | RedirectPermanent /olddir http://www.example.com/newdir/ |
At the very beginning of your root .htaccess
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
jaeysson
Joined: 10 Jan 2007 Posts: 5
|
Posted: Sun Mar 23, 2008 6:29 pm Post subject: Here's what I ended up doing |
|
|
Because I was already using the rewrite rules for my old forum I simply changed it to my new forum directory. This seems to work great.
In my htaccess file:
| Code: |
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule ^forum/.+/([^/]+\.html)$ /keyword-rich-forum/index.php [L,R=301]
RewriteRule ^forum/index\.php$ /keyword-rich-forum/index.php [L,R=301]
RewriteRule ^forum/blog/(.*)$ /keyword-rich-forum/index.php [L,R=301]
# CATEGORIES
RewriteRule ^forum/.+-vc([0-9]+)\.html$ /keyword-rich-forum/index.php?c=$1 [QSA,L,NC,R=301]
# PAGINATED FORUM
RewriteRule ^forum/.+-vf([0-9]+)-([0-9]+)\.html$ /keyword-rich-forum/viewforum.php?f=$1&start=$3 [QSA,L,NC,R=301]
# FORUM
RewriteRule ^forum/.+-vf([0-9]+)\.html$ /keyword-rich-forum/viewforum.php?f=$1&start=$3 [QSA,L,NC,R=301]
# PAGINATED TOPIC
RewriteRule ^forum/topic([0-9]+)-([0-9]+)\.html$ /keyword-rich-forum/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC,R=301]
# TOPIC
RewriteRule ^forum/topic([0-9]+)\.html$ /keyword-rich-forum/viewtopic.php?t=$1&start=$3 [QSA,L,NC,R=301]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /keyword-rich-forum/viewtopic.php?p=$1 [QSA,L,NC,R=301]
#PROFILES
RewriteRule ^forum/member([0-9]+)\.html$ /keyword-rich-forum/memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC,R=301]
# END PHPBB PAGES
#####################################################
|
I'm using the above code along with the new redirects for PHPBB3 and they work very well together.
Thanks for your help!
Jaeysson |
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |