Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"This webpage has a redirect loop" in Chrome but working fine on FF and IE?

The page http://www.japanforum.com/forum/japanese-language-help/39454-~tara-past-tense-clause.html is accessible using FireFox / IE / Safar / Opera.

However on Chrone, the page doesn't display:

enter image description here

Does anyone know what may be the cause of the problem?

Or rather, what is the explanation for this phenomenon?

like image 402
Pacerier Avatar asked Sep 01 '11 10:09

Pacerier


2 Answers

I appears that you are trying to redirect to the correct SEO-friendly URL, e.g. if I go to test/39454-foo.html, it redirects me to test/39454-~tara-past-tense-clause.html.

You compare the requested URI to the expected one and redirect if they do not match.

However, there are multiple ways of writing the same URI. Some browsers may send ~ urlencoded and some may not, for example.

So you should canonicalize both URIs before comparing them.

like image 88
Arnaud Le Blanc Avatar answered Oct 07 '22 08:10

Arnaud Le Blanc


Double-check the redirection settings on your server. Add-on domains should not include "www." when being added. Without this, this will solve the redirection problem.

like image 26
Marco Clacio Avatar answered Oct 07 '22 08:10

Marco Clacio