phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
forum redirecting with mod rewrite problem

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
::  
Author Message
mikey672



Joined: 15 Dec 2006
Posts: 24

forum redirecting with mod rewrite problemPosted: Tue Jan 23, 2007 10:57 am    Post subject: forum redirecting with mod rewrite problem

i have the advanced mod rewriting and zero dupes and notice problem all is working ok - except that any file ending with html in any folder on the domain is redirecting back 301 to forums index

the forum is in root

so! i experiment with this and i find that if i place a htaccess and RewriteBase in all other folders it works ok.

why is this problem occuring? and is putting htaccess in every folder with RewriteBase good or bad?

this is htaccess

Code:

Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.extra\.domain\.net$ [NC]
RewriteRule ^(.*) http://www.extra.domain.net/$1 [QSA,R=301,L]
RewriteRule ^.+/([^/]+\.html)$ index.php [R=301,L]
RewriteRule ^.+-vc([0-9]+)\.html$ index.php?c=$1 [QSA,L]
RewriteRule ^.+-vf([0-9]+)-([0-9]+)\.html$ viewforum.php?f=$1&start=$2 [QSA,L]
RewriteRule ^.+-vf([0-9]+)\.html$ viewforum.php?f=$1 [QSA,L]
RewriteRule ^.+-vt([0-9]+)-([0-9]+)\.html$ viewtopic.php?t=$1&start=$2 [QSA,L]
RewriteRule ^.+-vt([0-9]+)\.html$ viewtopic.php?t=$1 [QSA,L]
RewriteRule ^post([0-9]+)\.html$ viewtopic.php?p=$1 [QSA,L]
RewriteRule ^member([0-9]+)\.html$ profile.php?mode=viewprofile&u=$1 [QSA,L]


also i notice that it works with and not the / before rewrites! which is best to use. as you see now i have above no /
is it better they all like this
RewriteRule ^.+-vt([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]


Last edited by mikey672 on Tue Jan 23, 2007 11:02 am; edited 1 time in total
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

forum redirecting with mod rewrite problemPosted: Tue Jan 23, 2007 10:59 am    Post subject: Re: forum redirecting with mod rewrite problem

Just get rid of this rewriterule :

Code:
# FORUM PROTECTION RULE
RewriteRule ^phpbb/.*/([^/]+\.html)$ /phpbb/index.php [R=301,L]


In your forum's .htaccess, it's useless with the zero dupe any way Wink

++

_________________
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
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: