[TYPO3-english] CoolURI redirect IE to 'page not found'

Aquamarine aquamarine_verner at hotmail.com
Tue Jan 27 05:01:07 CET 2009


Hi,

I sent this once before but there is connection or whatever problem.
So I'm sure the previous reply wasn't reached anyone including myself.

I got HTTP header from Firefox. Here it is:


http://localhost/ecraft/index.html

GET /ecraft/index.html HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) 
Gecko/2008120122 Firefox/3.0.5
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://localhost/ecraft/screenshot/1/index.html
Cookie: be_typo_user=15451fecbbf92a05c8427fee1e7baf70; 
PHPSESSID=f65f3ebd7982e6bb025a244daa867561; fe_typo_user=e66c406da2
If-Modified-Since: Tue, 27 Jan 2009 02:17:19 GMT

HTTP/1.1 200 OK
Date: Tue, 27 Jan 2009 02:17:22 GMT
Server: Apache/2.2.4 (Win32) PHP/5.2.3
X-Powered-By: PHP/5.2.3
Expires: 0
Last-Modified: Tue, 27 Jan 2009 02:17:23 GMT
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Keep-Alive: timeout=5, max=98
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8


I have problem get HTTP header from IE since Fiddler capture only online 
information not local ones. I tried workaround like using local IP and 
www.somesite.com instead of 'localhost', strange that it works fine.
It seem that the problem occurs only when I use localhost with CoolURI 
activated.

Any idea?

Thanks,
Aquamarine

Steffen Sebastiany wrote:
 > Hi,
 >
 > it seems to be like Dmitry wrote. IE must a have minimum amount of 
bytes in
 > a 404 to show it.
 >
 > I just played a bit and my working solution is:
 >
 >     <pagenotfound>
 >         <status>HTTP/1.0 404 Not Found</status>
 >         <behavior type="message"><![CDATA[<?xml version="1.0"
 > encoding="utf-8"?>
 > <!DOCTYPE html
 >      PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 >      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 > <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml" xml:lang="de"
 > lang="de">
 > <head>
 > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 > <title>Error 404</title>
 > <!-- This comment ist just to avoid stupid IE 404 beavior ;-) ssy
 > Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
 > eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
 > voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
 > clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit
 > amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
 > nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam 
erat, sed
 > diam voluptua. At vero eos et accusam et justo duo dolores et ea 
rebum. Stet
 > clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit
 > amet.
 > Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
 > eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
 > voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
 > clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit
 > amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
 > nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam 
erat, sed
 > diam voluptua. At vero eos et accusam et justo duo dolores et ea 
rebum. Stet
 > clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit
 > amet.
 > -->
 > </head>
 > <body id="error_404">
 > <h1>Page not found!</h1>
 > </body>
 > </html>]]></behavior>
 >     </pagenotfound>
 >
 > I've got to play a bit with the lenght of text (site properties shows 
1657
 > bytes). I verified on my server which uses mod_deflate.
 >
 > Bonus: Valid 404 page ;-)
 >
 > Steffen Sebastiany
 >
 >> -----Ursprungliche Nachricht-----
 >> Von: typo3-english-bounces at lists.netfielders.de
 >> [mailto:typo3-english-bounces at lists.netfielders.de] Im
 >> Auftrag von Jan Bednarik
 >> Gesendet: Montag, 26. Januar 2009 18:28
 >> An: typo3-english at lists.netfielders.de
 >> Betreff: Re: [TYPO3-english] CoolURI redirect IE to 'page not found'
 >>
 >>
 >>> this seems to be a bug in IE 7,
 >> Would be nice ;)
 >>
 >> Anyway, I'm kinda lost. What's the current status?
 >>
 >> --
 >> Jan Bednarik
 >> www.bednarik.org - web about Typo3 in czech
 >> _______________________________________________
 >> TYPO3-english mailing list
 >> TYPO3-english at lists.netfielders.de
 >> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
 >>
 >


More information about the TYPO3-english mailing list