Upgrade now rewrite is wrong

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

Moderator: Moderators

Upgrade now rewrite is wrong

Postby AMH » Sat Oct 27, 2007 5:49 am

I upgraded to Ver PHPBB 0.22 and installed all the mods again. :oops: I just have one problem with my rewrite now as the urls have changed. How can I get it back. I cant get the 404 to redict to the front page either.


BEFORE
driver-630-730-gfxcel-pc133-video-driver-vt643.html

NOW
driver-630-730-gfxcel-pc133-video-driver-t643.html


HTACCESS
# These three lines should only be added if not already done in the .htaccess

RemoveHandler .html .htm
AddHandler application/x-httpd-php .php .htm .html

Options +FollowSymLinks

RewriteEngine on

RewriteCond %{HTTP_HOST} ^myforum.net [NC]

RewriteRule ^(.*)$ http://www.myforum.net/$1 [L,R=301]



RewriteBase /


ErrorDocument 404 errors/404.html

#########################################################
# forum SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.forum-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^forum/index\.html$ /forum/index.php [QSA,L,NC]
# FORUM PROTECTION RULE
# RewriteRule ^forum/[a-z0-9_-]*/([^/]+\.html)$ /forum/index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^forum/[a-z0-9_-]*-c([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^forum/[a-z0-9_-]*-t([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^forum/[a-z0-9_-]*-t([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^forum/member([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END forum PAGES
#####################################################

Much appreciate it if someone knows how to change the htaccess file.

:D
AMH
 
Posts: 32
Joined: Wed Oct 11, 2006 8:45 am

Advertisement

Postby SeO » Sat Oct 27, 2007 10:42 am

You must have been using an old version of the mod.

So, the best would be to keep your previous url standard with the -vt etc, you'll think about redirecting if you convert to phpBB3; will save a redirecting and will not change much SEO wise.

We only shorten the delimiters to get nicer URLs.

So, you just need to replace :

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


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


in phpbb_seo/phpbb_seo_class.php

and the "-c" with "-vc", "-f" with "-vf" and "-t" with "-vt" in the .htaccess (all occurrences).
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm


Return to phpBB2 Advanced mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests