solved phpbb2-webmedic to phpbb3-Advanced SEO URL

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators

solved phpbb2-webmedic to phpbb3-Advanced SEO URL

Postby tenoch » Fri Jul 25, 2008 2:29 am

Reading post in this forums, and making some test, I solve this:
Convert phpbb2 forum with seo mod of WebMedic
To phpbb3 with Advanced SEO URL


Activated:
Forum URL caching: yes
Forum ID Removing: yes

in control panel, In Forum URL Management, added:
vfx (x corresponding to the number I had before in each FORUM)



With This, my FORUMS urls where the same than before

But topics urls where:
old mod:
any-title-vtxxx.html
adv.mod:
any-title-txxx.html

So it was solved with:


Desactivated:
Forum URL caching: no
Forum ID Removing: no


Rebuilded the new .htaccess

Replace code in
phpbb_seo/phpbb_seo_class.php

Code: Select all
      $this->seo_delim = array( 'forum' => '-f', 'topic' => '-t',


with :
Code: Select all
      $this->seo_delim = array( 'forum' => '-vf', 'topic' => '-vt',



in .htaccess

RewriteRule ^post([0-9]+)\.html$ viewtopic.php?p=$1 [QSA,L,NC]


with :

RewriteRule ^(post|[a-z0-9_-]*-vp)([0-9]+)\.html$ viewtopic.php?p=$2 [QSA,L,NC]


And all works fine
Even when I desactivated Forum URL caching an Forum ID Removing, the forums keeped the vfx


Thanks
tenoch
 
Posts: 20
Joined: Thu Jul 24, 2008 9:40 pm

Advertisement

Postby dcz » Fri Jul 25, 2008 1:08 pm

yes, keeping the same urls as before can be a solution, but you could as well take this occasion to end up with even better urls.
It's not hard to redirect all urls properly and phpBB3 mod rewrite as more possibilities than the phpBB2 mod rewrites.

It's of course as you wish, but it's a good occasion to wonder about this.

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

Re: solved phpbb2-webmedic to phpbb3-Advanced SEO URL

Postby tenoch » Mon Apr 30, 2012 3:40 am

Just updating this post, because I moved my forums to another folder, and update it to 3.0.10, and have to repeat all this, and there were more modifications that I did not mentioned here

in

.htacces

# FORUM ALL MODES
RewriteRule ^(forum|[a-z0-9_-]*-vf)([0-9]+)(-([0-9]+))?\.html$ viewforum.php?f=$2&start=$4 [QSA,L,NC]

# TOPIC WITH VIRTUAL FOLDER ALL MODES
RewriteRule ^(forum|[a-z0-9_-]*-vf)([0-9]+)/(topic|[a-z0-9_-]*-vt)([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC]

# TOPIC WITHOUT FORUM ID & DELIM ALL MODES
RewriteRule ^([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-vt)([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC]
tenoch
 
Posts: 20
Joined: Thu Jul 24, 2008 9:40 pm


Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 4 guests