Just moved to phpBB3 from Nuke-EVo

Zero duplicate support forum. Personalized HTTP 301 dynamic redirections for phpBB.

Moderator: Moderators

Re: Just moved to phpBB3 from Nuke-EVo

Postby dcz » Mon May 25, 2009 12:40 pm

You need to keep the left part as it is, only the right part (the one with module.php) needs to be changed.
Example again :
Code: Select all
RewriteRule ^ftopic(t|p)-([0-9]*).html modules.php?name=Forums&file=viewtopic&$1=$2

becomes :
Code: Select all
RewriteRule ^ftopic(t|p)-([0-9]*)\.html viewtopic.php?$1=$2 [QSA,L,NC]


These two :
Code: Select all
RewriteRule ^forum-([0-9]*)-([0-9]*).html modules.php?name=Forums&file=viewforum&f=$1&start=$2
RewriteRule ^forum-([0-9]*).html modules.php?name=Forums&file=viewforum&f=$1

becomes :
Code: Select all
RewriteRule ^forum-([0-9]*)(-([0-9]*))?\.html viewforum.php?f=$1&start=$3 [QSA,L,NC]


This one :
Code: Select all
RewriteRule ^ftopic-([0-9]*)-([0-9]*).html modules.php?name=Forums&file=viewtopic&t=$1&start=$2

becomes :
Code: Select all
RewriteRule ^ftopic-([0-9]*)-([0-9]*)\.html viewtopic.php?t=$1&start=$2 [QSA,L,NC]


It's rather long to list them all, since many nuke RewriteRule are just useless, and other does rewrite url that do not need to be, but with these three, you'll be already redirecting forum, topic and post, pagination included.

Just add an s to your forum index in phpbb_seo_class.php to use forums.html instead of the default forum.html and you'll be properly handling the the forum index as well.

Of course, it would be better to local test all of this, but there si nothing difficult, patience and time is what you'll need the most to take care about all cases.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Advertisement

Re: Just moved to phpBB3 from Nuke-EVo

Postby sanjokidd » Wed Jun 10, 2009 8:40 pm

dcz,

I am sorry I'm still not understanding...

here is an example..

http://www.google.com/search?q=site:htt ... t=320&sa=N

I want to redirect URL "modules.php?name=Forums&file=viewtopic&t=14807" to the new phpBB3 board...what code would I use??
sanjokidd
PR0
PR0
 
Posts: 51
Joined: Mon Jan 19, 2009 8:36 am

Re: Just moved to phpBB3 from Nuke-EVo

Postby dcz » Thu Jun 11, 2009 1:03 pm

I gave you the main rewriterule to use already, while explaining you how ot mod the others.
With :
Code: Select all
RewriteRule ^ftopic(t|p)-([0-9]*)\.html viewtopic.php?$1=$2 [QSA,L,NC]
RewriteRule ^forum-([0-9]*)(-([0-9]*))?\.html viewforum.php?f=$1&start=$3 [QSA,L,NC]
RewriteRule ^ftopic-([0-9]*)-([0-9]*)\.html viewtopic.php?t=$1&start=$2 [QSA,L,NC]


you'll be redirecting forum, post and topic, pagination included, as long as, of course, you set proper paths in your rewriterule (use the same one as the other one in your .htaccess).

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Previous

Return to Zero duplicate

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests