phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
[Solved]Migrating links from smf to phpbb3-seo

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
mik



Joined: 10 Jul 2008
Posts: 3
Location: France

[Solved]Migrating links from smf to phpbb3-seoPosted: Thu Jul 10, 2008 1:25 pm    Post subject: [Solved]Migrating links from smf to phpbb3-seo

Hello,
I have a board currently running with smf. I want to switch to phpbb3. Links from smf are different than phpbb ones : I made a bridge (simple php file) between smf links to phpbb links. Everything is running fine. I added the seo on phpbb and everything is running. The server is apache 2 with mod_rewrite (under linux).
Here is a smf link : -http://localhost/forum/index.php/topic,2319.msg111848.html#new
my bridge converts this url into -http://localhost/phpbb/viewtopic.php?f=9&t=2319&st=0&sk=t&sd=a&start=30#p111848

I would like to convert it into -http://localhost/phpbb/amd-remonte-un-peu-t2319-30.html

How can I find the seo url with this url -http://localhost/phpbb/viewtopic.php?f=9&t=2319&st=0&sk=t&sd=a&start=30 ? What methods am I supposed to call in phpbb_seo_class.php to convert the url ?

Thank you Wink


Last edited by mik on Fri Jul 11, 2008 11:24 am; edited 1 time in total
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

[Solved]Migrating links from smf to phpbb3-seoPosted: Thu Jul 10, 2008 1:37 pm    Post subject: Re: [Solved]Migrating links from smf to phpbb3-seo

The easiest way to do it would be to just link the smf rewriterules to the phpBB3 files and let the zero duplicate do the rest (with a single HTTP 301 header).
For your topic url example, and assuming that the url is indeed a post url, you should use something like :
Code:
RewriteRule ^index\.php/topic,[0-9]+\.msg([0-9])+\.html$ viewtopic.php?p=$1 [QSA,L,NC]


At the very end of you phpBB3 .htaccess, and set post redirection to at least "Guest" for the zero duplicate mod.

And so on with the other types of URLs Wink

_________________
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
Visit poster's website
mik



Joined: 10 Jul 2008
Posts: 3
Location: France

[Solved]Migrating links from smf to phpbb3-seoPosted: Thu Jul 10, 2008 5:00 pm    Post subject: Re: [Solved]Migrating links from smf to phpbb3-seo

Thank you for the answer Very Happy
Where can I find zero duplicate for phpbb3 ? I only find it for phpbb2.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

[Solved]Migrating links from smf to phpbb3-seoPosted: Thu Jul 10, 2008 5:04 pm    Post subject: Re: [Solved]Migrating links from smf to phpbb3-seo

here : http://www.phpbb-seo.com/boards/phpbb3-zero-duplicate/phpbb3-seo-zero-duplicate-vt1220.html

Have you seen our SEO premod ?

Can be handy since it includes all our mods at once and we support auto update packages just like phpBB3 does, so it's making it a lot easier for updates.

++

_________________
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
Visit poster's website
mik



Joined: 10 Jul 2008
Posts: 3
Location: France

[Solved]Migrating links from smf to phpbb3-seoPosted: Fri Jul 11, 2008 11:24 am    Post subject: Re: [Solved]Migrating links from smf to phpbb3-seo

That's very handy this seo premod Very Happy Now my smf links are redirected correctly Smile If someone wants, I can send or post the smf bridge Wink

Keep going on this great work ! Thank you Smile
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

[Solved]Migrating links from smf to phpbb3-seoPosted: Fri Jul 11, 2008 12:37 pm    Post subject: Re: [Solved]Migrating links from smf to phpbb3-seo

You're welcome Wink

_________________
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
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
Page 1 of 1

Navigation Similar Topics

Jump to: