| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
mik
Joined: 10 Jul 2008 Posts: 3 Location: France
|
Posted: 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  |
Last edited by mik on Fri Jul 11, 2008 11:24 am; edited 1 time in total |
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: 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  |
_________________ 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 |
|
 |
mik
Joined: 10 Jul 2008 Posts: 3 Location: France
|
Posted: Thu Jul 10, 2008 5:00 pm Post subject: Re: [Solved]Migrating links from smf to phpbb3-seo |
|
|
Thank you for the answer
Where can I find zero duplicate for phpbb3 ? I only find it for phpbb2. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
mik
Joined: 10 Jul 2008 Posts: 3 Location: France
|
Posted: 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 Now my smf links are redirected correctly If someone wants, I can send or post the smf bridge
Keep going on this great work ! Thank you  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |