ChrisB: mod_rewrite klappt nicht

Beitrag lesen

Hi,

%{SERVER_PROTOCOL}

Nein, das nicht – da steht nur HTTP/1.1 drin.

Siccher?

Zumindest, wenn es gleich dem ist, was $_SERVER['SERVER_PROTOCOL'] in PHP liefert – das ist nämlich HTTP/1.1 (oder HTTP/1.0, je nachdem).
Und das wäre m.E. auch logisch, weil das das Protokoll ist, dass der Server mit dem Client spricht. HTTPS ist ja „nur“ HTTP *over* SSL/TLS.

Ich habe es jetzt nicht extra ausprobiert, aber dann sollten wir den Apache-Leuten mal einen Tipp für ihre Doku geben.

<If "%{SERVER_PROTOCOL} != 'HTTPS'">

Okay, das müsste noch mal explizit geprüft werden.

MfG ChrisB

--
Autocomplete has spoiled me to a point where it happens every so often that I encounter a CAPTCHA, and I just type in the first character … and then wait for the rest of the code to be automatically suggested :/