Paul Brunner: dynamische Fehlerseite & htaccess

Beitrag lesen

Hallo Sönke,

Ich weiß nun natürlich nicht, wie lang Deine Liste ist, aber ich würd's trotzdem mit mehreren Redirects probieren. Bei dieser ErrorDocument404/PHP-Geschichte ist mir irgendwie unwohl :)

Mir war nicht bewusst, daß diese Funktionalität "vergewaltige".

In der php-Dokumentation habe ich dann nochmal nachgelesen und da steht folgendes:

"The second special case is the "Location:" header. Not only does it send this header back to the browser, but it also returns a REDIRECT (302) status code to the browser unless some 3xx status code has already been set.

header("Location: http://www.example.com/"); /* Redirect browser */
exit;                 /* Make sure that code below does
                         not get executed when we redirect. */ "

Also ist das doch das richtige?

Gruß
Paul