Moin!
Kann man denn mit mod_rewrite auch einen Statuscode setzen?
Ja, kann man. Lies die Doku.
Dort heißt es für RewriteRule:
• redirect|R [=code]' (force redirect)
Prefix Substitution with http://thishost[:thisport]/ (which makes the new URL a URI) to force a external redirection. […] If you want to use other response codes in the range 300-400 just specify them as a number or use one of the following symbolic names: temp (default), permanent, seeother.
Man kann auch 4xx-Stati setzen - R-Flag mit Codeangabe.
4xx ist also mit „300-400“ gemeint?
Allerdings erscheint es mir schlauer, den Status im Skript auszugeben, nicht im Rewriting.
Das habe ich jetzt auch getan, erscheint mir logischer.
Schönes Wochenende,
Robert