Safari redirects

Gesperrt
djavet
Beiträge: 264
Registriert: Do 22. Jan 2004, 11:31
Kontaktdaten:

Safari redirects

Beitrag von djavet »

Hello,

A visitor send me this:
Zitat:
wenn man z.b. auf \'media\' klick,
bekommt man \'http://
www.younggods.com/cms/
front_content.php?idcat=28?idcat=38?
idcat=38?idcat=38?idcat=38?idcat=38?
idcat=38?idcat=38?idcat=38?idcat=38?
idcat=38?idcat=38?idcat=38?idcat=38?
idcat=38?idcat=38?idcat=38\', mit einer
fehlermeldung: zu viele redirects.


safari meint: \'Too many redirects
occurred trying to open “http://
www.younggods.com/cms/
front_content.php?idcat=29…?idcat=71?
idcat=71?idcat=71?idcat=71?idcat=71?
idcat=71”. This might occur if you open
a page that is redirected to open another
page which then is redirected to open the
original page.\'


I've not Safari on my PC ;o)
Can you tell if this a Safari bug?

Regards, Dom
SkyBlader
Beiträge: 303
Registriert: Do 18. Mär 2004, 16:23
Wohnort: Ratingen / NRW
Kontaktdaten:

Beitrag von SkyBlader »

Hi djavet,

i tired to reconstruct your problem you describet in your post.

If i visit your page and click on "Media" ( idcat -> 29 ) the page showup correctly. I tried this with Musik ( idcat -> 28 ) to, still do not get this failure.

I tried this with Firefox 1.0 , IE 5.5, IE 6 SP1 (WIN) and Conquerer under Mandrake Linux.

I do not have Safarai ( i think it is an browser, or ? ), so i cannot test it.

Maybe Safari do not work correctly, or Maybe the Navigationmod is not Safari compatible .. which navigation module do you use ?.

so long

Stefan
Contenido 4.4.4/4.4.5 - Contenido 4.5.x

Module:sn_multinav für 4.5.x
emergence
Beiträge: 10653
Registriert: Mo 28. Jul 2003, 12:49
Wohnort: Austria
Kontaktdaten:

Beitrag von emergence »

it seems to be a bug in the safari browser

i've just checked you server http header when requesting page
http://www.younggods.com/cms/front_content.php?idcat=28

this is the result:

Code: Alles auswählen

HTTP/1.1 302 Found
Date: Thu, 30 Dec 2004 12:21:43 GMT
Server: Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.9 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a
X-Powered-By: PHP/4.3.9
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: Thu, 30 Dec 2004 12:21:43 GMT
Cache-Control: private, no-cachePragma: no-cache
Set-Cookie: sid_1_1=daebb0c931eca59c5bd021b66653c28b; path=/
Location: ?idcat=38
Connection: close
Content-Type: text/html
the interesting part is this
Location: ?idcat=38

most browsers should rebuild the correct url in this way
filename + header location value

but safari doesn't generate the url this way

it takes the complete filename + existing query string + header location value
the resulting url in your case would always be something like this
1 request: front_content.php?idcat=28
2 request: front_content.php?idcat=28?idcat=38
3 request: front_content.php?idcat=28?idcat=38?idcat=38
...
safari generates a never ending loop....
thats the reason for the error message...

a solution for your problem would be to define redirects in contenido with the correct filename + query string
-> front_content.php?idcat=38
and not only with the query string
-> ?idcat=38

this is no contenido bug...

topic closed...
*** make your own tools (wishlist :: thx)
Gesperrt