Hallo,
ich möchte beim Aufruf von www.example.com in der Environment-Variablen MyAktP den Wert 'default' zuweisen,
beim Aufruf von www.example.com/irgendwas.html aber den Wert 'irgendwas'.
Leider funktionieren beide der untenstehenden Varianten nicht.
Wo liegt der Fehler?
Gibt es eine andere Möglichkeit der gewünschten Besetzung der Environment-Variablen MyAktP?
#Variante 1:
SetEnv MyAktP default
SetEnvIfNoCase Request_URI "\/(.+)\.html$" MyAktP=$1
#Aufruf www.example.com: Ergebnis: MyAktP='default' <== richtig
#Aufruf www.example.com/index.html: Ergebnis: MyAktP='default' <== falsch
#Variante 2:
SetEnv MyAktP = default
SetEnvIfNoCase Request_URI "\/(.+)\.html$" MyAktP=$1
#Aufruf www.example.com: Ergebnis: MyAktP='' <== falsch
#Aufruf www.example.com/index.html: Ergebnis: MyAktP='index' <== richtig