Öhm .... die RewriteRule match nicht auf den Querystring? Soweit ich das noch so im Kopf habe, wird die gesamte URL ab der RewriteBase gemacht, was ja die querystring einschließt ^^
Hast gewonnen:
Apache Manual wrote:The Pattern will not be matched against the query string. Instead, you must use a RewriteCond with the %{QUERY_STRING} variable. You can, however, create URLs in the substitution string, containing a query string part. Simply use a question mark inside the substitution string, to indicate that the following text should be re-injected into the query string. When you want to erase an existing query string, end the substitution string with just a question mark. To combine a new query string with an old one, use the [QSA] flag.
Apache: mod_rewrite - RewriteRule
Insofern zweiter (ungeprüfter) Versuch:
- Code: Select all
RewriteRule ^/([a-zA-Z]{2})/(.*\.php)$ /v6/$2?lang=$1 [QSA]
Sind die Quantoren in der Form eigentlich möglich? Im Manual sind nur die grafischen (*+?) angegeben, bin mir also unsicher, ob die explizite Angabe ({x,y}) überhaupt möglich sind ^^
Nicht jeder Fehler ist ein Bug ...