I have a problem in my vBulletin-forum because vBSEO is causing redirect loops in Firefox. The error message that firefox users see when they open certain URLs rewritten by vBSEO is:
This is the default Firefox error message that appears when Firefox has stopped an endless loop after redirecting a request to the same URL 20 times.Redirect Loop
Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked.
The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete.
The strange thing is that I have copied my forum-database and all php-files to a different server and everything is working fine there. That means, the reason for this problem is not my vBSEO-config, my vBulletin-forum or any vBulletin-addons (because there's no redirect loop on the different server).
Either vBSEO is not compatible with my current server configuration and software or the problem is somewhere in my server configuration (but outside of the vbulletin-folder).
My current configuration is: Linux Debian Lenny, PHP 5.2.6, FastCGI, Apache 2.2.9.
I was able to find at least one place in my forum that is causing these problems and I will describe it now. Maybe that helps to find the reason for these redirect loops:
If I am trying to open an URL that was created by vBSEO and where the "virtual subfolder" does not exist in the filesystem as a real folder, the following happens. I'm trying to open the URL
http://forum.mydomain.tld/tags (without trailing slash!)
and I am not being redirected to the URL containing the trailing slash that would look like this:
http://forum.mydomain.tld/tags/
But if I'm trying to open a subfolder that really exists in the filesystem and where the link has not been created and handled by vbseo, Apache is appending the trailing slash automatically. So for example, http://forum.mydomain.tld/images is being redirected to http://forum.mydomain.tld/images/ automatically.
That means that there is a different behaviour when opening "URLs without trailing slash" regarding the fact that Apache is handling them or vBSEO is handling them.
And now comes the very strange thing: I have told you that I have copied the whole forum to a different server to test it there. And on this server vBSEO does append a trailing slash to all URLs (whereas it does not do it on my server).
And the connection to my "redirect loop"-problem is, that the redirect loop always happens if people are trying to open these URLs "without trailing slash". But the error message only appears in Firefox. But I am not the only one who sees this error, because all Firefox-users in my forum are seing these errors too and there's a large thread in my forum where people are complaining about it! I have attached a screenshot of the firebug-extension in my firefox browser where you can see the error message and below the timeline of the whole redirect loop after calling the URL http://forum.mydomain.tld/groups
The error message is german in this screenshot because I have installed the german firefox, but you can read the english version of this error message quoted at the beginning of this thread.
My question is now: why does vBSEO produce this redirect loop on my server instead of simply appending a slash to the URLs (like it does on the other server where I have tested it and like on all other servers where vBSEO is currently running)?
VERY IMPORTANT: PLEASE READ THE FOLLOWING CAREFULLY!
Before you are trying to reproduce this error on my webserver and forum: I have currently suppressed most of the errors by adding the following line to my .htaccess file:
This htaccess-rule appends the trailing slash to all "non slash"-URLs. I have added this line in my .htaccess-file before vbseo.php is called and the redirect loop errors have become less (but they didn' t disappear completely).Code:RewriteRule ^(([^/]+/)*[^./]+)$ http://forum.mydomain.tld/$1/ [L,R=301]
But I can remove this line from my .htaccess-file again if the vBSEO-support-team wants to try to reproduce these errors using Firefox (the only browser where you can see those errors). My vBSEO-ticket-ID for this problem is 8913-QOPC-6517. I was talking german in this ticket so far but it seemed like there was a problem with the language barrier. To the vBSEO-support-team: you can reply in this support ticket in english from now on.
If anyone should have an idea what could be the reason for vBSEO's behaviour on my server regarding the trailing slashes, please let me know. P.S.: mod_rewite is working fine for all other domains that are running on the same server. The problem only exists with vBSEO.


LinkBack URL
About LinkBacks





Reply With Quote
