| :: |
| Author |
Message |
MorYeL phpBB SEO Team


Joined: 11 Aug 2006 Posts: 99
|
Posted: Sun Oct 01, 2006 8:49 am Post subject: I Have A Big Problem...!!! |
|
|
Hi to all... I install your Mod Rewrite mode. But I have a problem.
my .htaccess file is:
| Code: | RewriteEngine On
RewriteRule ^.+/([^/]+\.html)$ index.php [R=301,L]
# CATEGORIES
RewriteRule ^.+-vc([0-9]+)\.html$ index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^.+-vf([0-9]+)-([0-9]+)\.html$ viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^.+-vf([0-9]+)\.html$ viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^.+-vt([0-9]+)-([0-9]+)\.html$ viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^.+-vt([0-9]+)\.html$ viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^post([0-9]+)\.html$ viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ profile.php?mode=viewprofile&u=$1 [QSA,L] |
my forum directory is http://www.sebinportal.com/panolar/
my .htaccess directory is http://www.sebinportal.com/panolar/.htaccess
My forums are working but topics no
For example
http://www.sebinportal.com/panolar/sebinkarahisar-in-tarihi-vf2.html this is working
but ;
http://www.sebinportal.com/panolar/topic4.html this is not working
Please help me... Thanks... |
|
|
| Back to top |
|
 |
|
 |
993ti
Joined: 26 Aug 2006 Posts: 16
|
Posted: Sun Oct 01, 2006 11:44 am Post subject: Re: I Have A Big Problem...!!! |
|
|
What version of the rewrite are you using?
The problem you posted (topic4.html) is used by the simple and mixed rewrite.
The htaccess you posted is from the advanced rewrite.
Looks like you mixed something up? |
|
|
| Back to top |
|
 |
MorYeL phpBB SEO Team


Joined: 11 Aug 2006 Posts: 99
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14814
|
|
| Back to top |
|
 |
MorYeL phpBB SEO Team


Joined: 11 Aug 2006 Posts: 99
|
Posted: Mon Oct 02, 2006 12:51 pm Post subject: Re: I Have A Big Problem...!!! |
|
|
Hi dcz... I changed my .htaccess file...
| Code: | RewriteEngine On
RewriteRule ^.+/([^/]+\.html)$ index.php [R=301,L]
# CATEGORIES
RewriteRule ^.+-vc([0-9]+)\.html$ index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^.+-vf([0-9]+)-([0-9]+)\.html$ viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^.+-vf([0-9]+)\.html$ viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^topic([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^topic([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^post([0-9]+)\.html$ viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ profile.php?mode=viewprofile&u=$1 [QSA,L] |
But my problem is going on Please help me    |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14814
|
Posted: Mon Oct 02, 2006 1:04 pm Post subject: Re: I Have A Big Problem...!!! |
|
|
it can be the slash before viewtopic.php in the two modified lines of code or it could be because of some other .htaccess in the domain's root.
If getting rid of the slash is not enough, try deleting your panolar/ 's .htaccess and adding this in your root's one (on folder above) :
| Code: | RewriteEngine On
RewriteBase /
RewriteRule ^panolar/.+/([^/]+\.html)$ panolar/index.php [R=301,L]
# CATEGORIES
RewriteRule ^panolar/.+-vc([0-9]+)\.html$ panolar/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^panolar/.+-vf([0-9]+)-([0-9]+)\.html$ panolar/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^panolar/.+-vf([0-9]+)\.html$ panolar/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^panolar/topic([0-9]+)-([0-9]+)\.html$ panolar/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^panolar/topic([0-9]+)\.html$ panolar/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^panolar/post([0-9]+)\.html$ panolar/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^panolar/member([0-9]+)\.html$ panolar/profile.php?mode=viewprofile&u=$1 [QSA,L] |
Do not repeat :
| Code: | RewriteEngine On
RewriteBase / |
if your root's .htaccess is already starting mod_rewrite.
It is more handy to do so if you do not run hundreds of rewriterules from the root's .htaccess as it will allow the www prefix redirection to work easier for all of your web-site's folders.
++ |
_________________ 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 |
|
 |
MorYeL phpBB SEO Team


Joined: 11 Aug 2006 Posts: 99
|
Posted: Mon Oct 02, 2006 6:17 pm Post subject: Re: I Have A Big Problem...!!! |
|
|
Thanks dcz...  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14814
|
|
| Back to top |
|
 |
|
|