| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
AMH
Joined: 11 Oct 2006 Posts: 30
|
Posted: Sat Oct 27, 2007 5:49 am Post subject: Upgrade now rewrite is wrong |
|
|
I upgraded to Ver PHPBB 0.22 and installed all the mods again. 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.
 |
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3477
|
Posted: Sat Oct 27, 2007 10:42 am Post subject: Re: Upgrade now rewrite is wrong |
|
|
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: | $this->seo_delim = array('cat' => '-c',
'forum' => '-f',
'topic' => '-t', |
With :
| Code: | $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). |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |