How to kill URL rewriting type "Advanced"

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

Moderator: Moderators

How to kill URL rewriting type "Advanced"

Postby IPB_Refugee » Tue Feb 02, 2010 3:08 pm

Hello,

I thought I made some mistake updating my board from 3.0.4 to 3.0.6 and this great SEO mod from 0.4.8 to 0.6.2 because neither forum URLs nor topic URLs were rewritten correctly in Advanced mode.

It took me a few hours to find the problem: Simply put

Code: Select all
      $this->seo_static['forum']            = 'forum-';


in phpbb_seo/includes/setup_phpbb_seo.php and Advanced mode will not work anymore. (Be sure to put a minus (-) at the end.)

This problem does not occur e.g. with:

Code: Select all
      $this->seo_static['topic']            = 'thema-';
      $this->seo_static['post']            = 'beitrag-';
      $this->seo_static['user']            = 'mitglied-';
      $this->seo_static['group']            = 'gruppe-';


The solution is a simple one: Just delete the minus:

Code: Select all
      $this->seo_static['forum']            = 'forum';


Regards
Wolfgang
User avatar
IPB_Refugee
PR0
PR0
 
Posts: 82
Joined: Thu Jul 24, 2008 2:18 pm

Advertisement

Re: How to kill URL rewriting type "Advanced"

Postby dcz » Sun Feb 14, 2010 12:32 pm

mm, should have worked also with "forum-", but, you may just had an .htaccess meant for "forum" (if so, re-generating a new one after the change to "forum-" since it's not default should have fixed the issue).

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

Re: How to kill URL rewriting type "Advanced"

Postby IPB_Refugee » Tue Feb 16, 2010 1:21 am

Hello dcz,

I tried it again and changed

Code: Select all
      $this->seo_static['forum']            = 'forum';


to

Code: Select all
      $this->seo_static['forum']            = 'forum-';


in setup_phpbb_seo.php. Then I recreated a .htaccess and uploaded it.

Code: Select all
    # FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. "forum" REQUIRES TO BE SET AS FORUM INDEX
    # RewriteRule ^forum\.html$ /index.php [QSA,L,NC]
    # FORUM ALL MODES
    RewriteRule ^(forum-|[a-z0-9_-]*-f)([0-9]+)(-([0-9]+))?\.html$ /viewforum.php?f=$2&start=$4 [QSA,L,NC]
    # TOPIC WITH VIRTUAL FOLDER ALL MODES


But it's not a problem of .htaccess. The URLs are simple not longer "advanced". E.g.

example.com/forum-4.html

instead of

example.com/small-talk-f4.html

and

example.com/thema-4634.html

instead of

example.com/this-is-a-beautiful-url-t4634.html

Then I changed back "forum-" to "forum", re-uploaded the old .htaccess, and voila - it works again. :|

Kind regards
Wolfgang
User avatar
IPB_Refugee
PR0
PR0
 
Posts: 82
Joined: Thu Jul 24, 2008 2:18 pm

Re: How to kill URL rewriting type "Advanced"

Postby dcz » Fri Mar 12, 2010 2:58 pm

Why do you always have to fell on the oddest ones :roll:

Anyway thanks for reporting, and sorry for delay, this is an actual bug !

Here is the fix (for 3.0.7-PL1 but should work on 3.0.6, even though I encourage you to uypdate) : http://phpbb-seo.coda-cola.net/projects ... isions/253

And for GYM : http://phpbb-seo.coda-cola.net/projects ... isions/254

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

Re: How to kill URL rewriting type "Advanced"

Postby IPB_Refugee » Fri Mar 12, 2010 5:13 pm

dcz wrote:Why do you always have to fell on the oddest ones :roll:


I wish I knew... :wink:

Thanks for the fix - it seems to work perfectly now!

Regards
Wolfgang
User avatar
IPB_Refugee
PR0
PR0
 
Posts: 82
Joined: Thu Jul 24, 2008 2:18 pm


Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 3 guests