I Have A Big Problem...!!!

Discussions and support about the different URL Rewriting techniques for phpBB2.

Moderator: Moderators

I Have A Big Problem...!!!

Postby MorYeL » Sun Oct 01, 2006 8:49 am

Hi to all... I install your Mod Rewrite mode. But I have a problem.

my .htaccess file is:

Code: Select all
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/sebi ... i-vf2.html this is working

but ;

http://www.sebinportal.com/panolar/topic4.html this is not working :(

Please help me... Thanks...
MorYeL
PR0
PR0
 
Posts: 99
Joined: Fri Aug 11, 2006 12:13 pm

Advertisement

Postby 993ti » Sun Oct 01, 2006 11:44 am

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?
993ti
 
Posts: 16
Joined: Sat Aug 26, 2006 6:25 pm

Postby MorYeL » Sun Oct 01, 2006 6:08 pm

MorYeL
PR0
PR0
 
Posts: 99
Joined: Fri Aug 11, 2006 12:13 pm

Postby dcz » Mon Oct 02, 2006 11:20 am

That's how 993ti told you, you are using the phpBB SEO mixed mod rewrite code with the phpBB SEO advanced mod rewrite's .htaccess

So if you want to go for the mixed mod rewrite you just need to change :

Code: Select all
# 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]


with :
Code: Select all
# 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]


in your .htaccess.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby MorYeL » Mon Oct 02, 2006 12:51 pm

Hi dcz... I changed my .htaccess file...

Code: Select all
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 :(:(:(
MorYeL
PR0
PR0
 
Posts: 99
Joined: Fri Aug 11, 2006 12:13 pm

Postby dcz » Mon Oct 02, 2006 1:04 pm

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: Select all
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: Select all
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 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby MorYeL » Mon Oct 02, 2006 6:17 pm

Thanks dcz... :D
MorYeL
PR0
PR0
 
Posts: 99
Joined: Fri Aug 11, 2006 12:13 pm

Postby dcz » Tue Oct 03, 2006 10:23 pm

You're welcome ;)
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB2 mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 3 guests