| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
mikey672
Joined: 15 Dec 2006 Posts: 24
|
Posted: 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

Joined: 28 Apr 2006 Posts: 14327
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |