Problem visiting topics with an 'F' in them

phpBB2 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting categories, forums and topic titles in their URLs.

Moderator: Moderators

Problem visiting topics with an 'F' in them

Postby Yoni » Tue Aug 21, 2007 9:06 am

I've got a problem with the phpBB SEO mod on my forum.

Soemtimes, forums or topics starting with an 'F/f' or have an 'F/f' in them give me the following error;
The forum you selected does not exist.


This topic for example;
http://www.prisonbreak.nl/forum/viewfor ... f=oto-t779

The topics title is; 'Post hier je eigen foto' but it writes 'oto' only. It doesn't seem to rewrite the URL correctly?

Weird thing is, the mod rewrites these other topic URLs but they also contain an 'f';
http://www.prisonbreak.nl/forum/spellet ... -1880.html
http://www.prisonbreak.nl/forum/ff-voor ... t1164.html

Can anyone tell me how to solve this problem?
Yoni
 
Posts: 5
Joined: Tue Aug 21, 2007 9:00 am

Advertisement

Postby dcz » Wed Aug 22, 2007 9:03 am

And welcome :D

Following -http://www.prisonbreak.nl/forum/viewforum.php?f=oto-t779 does not, and by the way is not supposed to, work.

Where does this link comes from ?

I'm not sure either to fully get the f thing, since your two other examples are working as expected.
Actually, it should not be possible to mess with delimiters, because the RegEx matches the delimiters, the id and the suffixes : -fxx.html.
So you'd need to add at least -fxx.html in your totpic title to mess up, but since dots will be replaced with hyphens while injecting, it's just not possible.

++
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby Yoni » Wed Aug 22, 2007 10:24 am

Thanks for welcoming me. :)

The link comes from this page;
http://www.prisonbreak.nl/forum/viewforum.php?f=19

Hold your mouse on the stickied topic, the url displays correct there.

Once clicking it it somehow opens the page;
http://www.prisonbreak.nl/forum/viewfor ... f=oto-t779
Yoni
 
Posts: 5
Joined: Tue Aug 21, 2007 9:00 am

Postby SeO » Wed Aug 22, 2007 10:55 am

Since the link displayed is correct : -http://www.prisonbreak.nl/forum/post-hier-je-eigen-foto-t779.html

I assume this can come from two places :

The .htaccess could be the guilty one, so please post it here.

Then, this odd url could as well be the result of a call to the phpBB redirect function, since the header returned is a 302 redirection on the good link. Could be because of a mod or mistake upon install dealing with auth.

Could you please translate the message you get :
Het onderwerp dat je gekozen hebt, bestaat niet.


As well, the last touch would be appreciated ;)

++
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Postby Yoni » Wed Aug 22, 2007 11:47 am

"Het onderwerp dat je gekozen hebt, bestaat niet."
Translated: The forum you selected does not exist.

Link added:
http://www.prisonbreak.nl/links.html

.htaccess:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /

#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^forum/index\.html$ /forum/index.php [QSA,L]
# FORUM PROTECTION RULE
# RewriteRule ^forum/.*/([^/]+\.html)$ /forum/index.php [R=301,L]
# CATEGORIES
RewriteRule ^forum/.*-c([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum/.*-f([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum/(.*)-f(.*).html$ http://www.prisonbreak.nl/forum/viewforum.php?f=$2 [QSA,L]
# FORUM
RewriteRule ^forum/.*-f([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^forum/.*-t([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^forum/.*-t([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^forum/member([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################


(Here some other stuff for the website itself.)
</IfModule>
Yoni
 
Posts: 5
Joined: Tue Aug 21, 2007 9:00 am

Postby SeO » Wed Aug 22, 2007 12:16 pm

Where does this one came from :

Code: Select all
# FORUM
RewriteRule ^forum/(.*)-f(.*).html$ http://www.prisonbreak.nl/forum/viewforum.php?f=$2 [QSA,L] 


?

Just delete it and it should be all right.
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Postby Yoni » Wed Aug 22, 2007 12:37 pm

I have no idea where that came from :O

Thanks for the help though, it now links directly to http://www.prisonbreak.nl/forum/post-hi ... -t779.html :D

Thanks alot!
Yoni
 
Posts: 5
Joined: Tue Aug 21, 2007 9:00 am

Postby SeO » Wed Aug 22, 2007 12:55 pm

Yoni wrote:I have no idea where that came from :O


:lol: Sometime the way of code is impenetrable

Great to see this one solved anyway.
For what's next, I'm sure you'll appreciate the zero duplicate a lot :

http://www.phpbb-seo.com/boards/this-is ... vt678.html
http://www.phpbb-seo.com/boards/viewtopic.php?t=678
http://www.phpbb-seo.com/boards/viewtopic.php?p=5382

;)
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Postby Yoni » Wed Aug 22, 2007 1:01 pm

Ok, thanks for the tip SeO, I will have a look at it when I have a little bit more free time :D

And thanks again for helping me out!
Yoni
 
Posts: 5
Joined: Tue Aug 21, 2007 9:00 am


Return to phpBB2 Advanced mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 3 guests