Rewriting for phpBB3 an already rewrited phpBB2

Discussions and support about the different URL Rewriting techniques for phpBB.

Moderator: Moderators

Postby Xabi » Tue Jul 10, 2007 3:38 pm

I have managed to redirect some of those URLs :) These are the rules:

Code: Select all
RewriteRule ^tema([0-9]+).html phpBB3/viewtopic.php?t=$1 [QSA,L]
RewriteRule ^tema([0-9]+)-([0-9]+)-asc-([0-9]+).html phpBB3/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
RewriteRule ^tema([0-9]+)-([0-9]+).html phpBB3/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
RewriteRule ^mensaje([0-9]+).html phpBB3/viewtopic.php?p=$1 [QSA,L,NC]
RewriteRule ^foro([0-9]+).html phpBB3/viewforum.php?f=$1 [QSA,L,NC]
RewriteRule ^foro-([0-9]+)-topicdays([0-9]+)-start([0-9]+).html phpBB3/viewforum.php?f=$1&start=$3 [QSA,L,NC]


Now I'm afraid of how will this affect to Google. I'm using a double redirection for old URLs... For example, tema1111.html --> /phpBB3/viewtopic.php?t=1111 --> /phpBB3/the-forum-f50/this-is-the-topic-t1111.html

Any ideas? Too much redirections here?
Xabi
PR0
PR0
 
Posts: 54
Joined: Wed Jun 20, 2007 2:29 pm

Advertisement

Postby dcz » Wed Jul 11, 2007 7:07 pm

The zero duplicate is making the trick even easier.

Once installed, you'll just have to keep the old rewriterules from the old standard up an running at the end of your new .htaccess.

This way, these url will still hit the proper script, and the zero duplicate will properly redirect them (with title injection and so on).

All of this imply a single HTTP 301 redirection, it follows this principle :

Code: Select all
temaxxx.html => .htacesss activates /phpBB3/viewtopic.php?t=xx => HTTP 301 based on the URI (temaxxx.html) => /phpBB3/the-forum-f50/this-is-the-topic-t1111.html


Just like if you had tried a misspelled title for a topic URL.

++
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Previous

Return to phpBB mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 3 guests