| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
webstuck
Joined: 16 Jan 2008 Posts: 10
|
Posted: Tue Feb 05, 2008 7:09 am Post subject: Help making new url's the same as in phpbb2 |
|
|
I'm upgrading from phpBB2 to phpBB3 and have already installed the phpBB SEO mod (advanced).
I am currently working with an install under a phpBB3/ folder, but can't seem to get the new url's to match up with those of my previous phpBB2 forum. I've attempted editing them in the forum url management screen, but it keeps adding a -fx to the end.
For instance, a forum url on the phpBB2 forum was:
phpBB2/forum-name-vf2.php
But, after my phpBB3 changes, here's what I'm getting:
phpBB3/forum-name-vf2-f2.php
And topic url's are as follows:
Currently on my phpBB2/ forum:
phpBB2/topic-name-vt9235.php
And on the newly installed phpBB3/ forum:
phpBB3/topic-name-t9235.html
What am I doing wrong?
My old .htaccess mod was:
RewriteCond %{REQUEST_URI} /phpBB2/ [NC]
RewriteBase /phpBB2
RewriteRule [.]*-vf([0-9]*) viewforum.php?%{QUERY_STRING}&f=$1
RewriteRule [.]*-vt([0-9]*) viewtopic.php?%{QUERY_STRING}&t=$1 [L]
Thanks. |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14131
|
Posted: Wed Feb 06, 2008 9:33 pm Post subject: Re: Help making new url's the same as in phpbb2 |
|
|
Looks like you where using the good old webmedic's code.
This in all cases imply some redirecting since the mod was not handling the post url and the paginated url properly.
So, you could take this occasion to make sure no other change could as well be efficient, such as virtual folder trick or even switching to the mixed mod, or at least, the forum urls since you can now use the exact keyword you want in these (instead of the straight title injection).
If you decide to redirect a bit more, you could as well change the -vt to -t, but it's not very important SEO wise.
Massive redirecting is not a problem with the zero duplicate, it has already been used to migrate pretty large forum. It's only a matter of making sure that the new url starts to be used all the sudden and do not change again after the search engine started to acknowledge the update.
Well done, it's something that should not even affect your SERPS.
Knowing all this, you can off course keep your url as they are now, you would just need to replace :
| Code: | | $this->seo_delim = array( 'forum' => '-f', 'topic' => '-t', |
with :
| Code: | | $this->seo_delim = array( 'forum' => '-vf', 'topic' => '-vt', |
before you generate your new .htaccess and replace the red part in this rewriterule of the .htaccess:
| Quote: | | RewriteRule ^post([0-9]+)\.html$ viewtopic.php?p=$1 [QSA,L,NC] |
with :
| Quote: | | RewriteRule ^(post|[a-z0-9_-]*-vp)([0-9]+)\.html$ viewtopic.php?p=$2 [QSA,L,NC] |
making sure you keep the other part of the rewriterule untouched. This one is probably different than the one you'll get generating the .htaccess for your board.
The other rewriterule will handle the webmedic urls and add the pagination support.
You should as well install the zero duplicate to have the pagination and post url properly redirected.
As well note that this only makes sens if you in the end use phpBB3 in the original phpbb2 dir, otherwise you'd have to redirect all your urls and in this case, making some improvement to your url could be great.
If you only do this, and install the zero duplicate, you'll still be able to configure you forum url, even without id, they will be properly redirected without any further code changes.
++ |
_________________ 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 |
|
 |
tenoch
Joined: 24 Jul 2008 Posts: 11
|
Posted: Fri Jul 25, 2008 1:28 am Post subject: Re: Help making new url's the same as in phpbb2 |
|
|
| dcz wrote: |
Knowing all this, you can off course keep your url as they are now, you would just need to replace :
| Code: | | $this->seo_delim = array( 'forum' => '-f', 'topic' => '-t', |
with :
| Code: | | $this->seo_delim = array( 'forum' => '-vf', 'topic' => '-vt', |
|
In wich files one need to replace this code?
Thanks |
|
|
| Back to top |
|
 |
tenoch
Joined: 24 Jul 2008 Posts: 11
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |