Canadaka
Joined: 21 May 2008 Posts: 1 Location: Vancouver, Canada
|
Posted: Wed May 21, 2008 10:14 pm Post subject: Rewriting sporadicly failed to remove SID from rewritten URL |
|
|
I have my forums running on the newest phpbb3 SEO premod using advanced mode. I am running IIS and ISAPI_rewrite, i have modified the rewrite rules to work with it. The SEO mod has been working for the most part great, but there is one problem.
Every once and awhile when loading a page, all the URLS willb e rewritten but will have ?SID=XXXXXXXXXXXXXXXXXXXX after the rewritten url.
Example: -http://www.canadaka.net/forums/canadian-humour-f13/dear-revenue-canada-t64228.html?SID=XXXXXXXXXXXXXXXXXx
this link will be a 404 page
When it should be just -http://www.canadaka.net/forums/canadian-humour-f13/dear-revenue-canada-t64228.html
this link works
It happens very sporadicly, my members are telling me it happens, and it happens to myself maybe 3 times a day. I have no clue why this is happening or how to fix it.
Here are my current phpbbseo settings:
| Quote: |
$this->cache_config['settings'] = array ( 'url_rewrite' => true, 'modrtype' => 3, 'profile_inj' => true, 'profile_vfolder' => true, 'profile_noids' => true, 'rewrite_usermsg' => true, 'rem_sid' => true, 'rem_hilit' => true, 'rem_small_words' => false, 'virtual_folder' => true, 'virtual_root' => false, 'cache_layer' => true, 'rem_ids' => false, 'copyrights' => array ( 'img' => false, 'txt' => '', 'title' => '', ), 'no_dupe' => array ( 'on' => true, ), 'zero_dupe' => array ( 'on' => false, 'strict' => false, 'post_redir' => 'guest', ), );
|
Here are my ISAPI_Rewrite rules, i don't think the problem lies here though, sine its the urls on the site not getting rewritten properly, which is before this comes into play.
| Quote: |
RewriteRule ^/forums/[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+))?$ /forums/viewforum.php\?f=$1&start=$3 [I,L]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^/forums/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forums/viewtopic.php\?f=$1&t=$2&start=$4 [I,L]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^/forums/announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forums/viewtopic.php\?t=$1&start=$3 [I,L]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^/forums/([a-z0-9_-]*)/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forums/viewtopic.php\?forum_uri=$1&t=$2&start=$4 [I,L]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^/profiles/([^/]+)/(topics|posts)/?(page([0-9]+))?$ /forums/search.php\?author=$1&sr=$2&start=$4 [I,L]
# GROUPS ADVANCED
RewriteRule ^/forums/[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?$ /forums/memberlist.php\?mode=group&g=$1&start=$3 [I,L]
# POST
RewriteRule ^/forums/post([0-9]+)$ /forums/viewtopic.php\?p=$1 [I,L]
# ACTIVE TOPICS
RewriteRule ^/forums/active-topics(-([0-9]+))?$ /forums/search.php\?search_id=active_topics&start=$2&sr=topics [I,L]
# UNANSWERED TOPICS
RewriteRule ^/forums/unanswered(-([0-9]+))?$ /forums/search.php\?search_id=unanswered&start=$2&sr=topics [I,L]
# NEW POSTS
RewriteRule ^/forums/newposts(-([0-9]+))?$ /forums/search.php\?search_id=newposts&start=$2&sr=topics [I,L]
# SCROLL CUSTOM
RewriteRule ^/forums/scroll(-([0-9]+))?$ /forums/search.php\?search_id=scroll&start=$2&sr=topics [I,L]
# THE TEAM
RewriteRule ^/forums/the-team$ /forums/memberlist.php\?mode=leaders [I,L]
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^/forums/([a-z0-9_-]+)/?(page([0-9]+))?$ /forums/viewforum.php\?forum_uri=$1&start=$3 [I,L]
|
Any help would greatly be appreciated! I am starting to get more and more complainst from my forum members about this. |
|
|
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Sat May 31, 2008 10:00 am Post subject: Re: Rewriting sporadicly failed to remove SID from rewritten URL |
|
|
Unfortunately, I do not have any IIS install to play with, but it could be due to the fact that isapi_rewrite apparently does not have any equivalent to the QSA flag available with mod_rewrite.
Though, I may have a solution, try replacing :
| Code: | | RewriteRule ^/forums/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forums/viewtopic.php\?f=$1&t=$2&start=$4 [I,L] |
with :
| Code: | | RewriteRule ^/forums/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html(?:\?(.*))?$ /forums/viewtopic.php\?f=$1&t=$2&start=$4?5&$5: [I,L] |
|
_________________ 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 |
|