On 10 Sep 2017 12:05 am, "Markus Rietzler" <w...@mrietzler.de> wrote:
hi, i want activate redirection from http to https for my sites. but my problem is, that there are certain requests, which can't be redirected to https. so i have to write some acls to check this. the urls which can't be redirected all contains client=xxxx, they can look like: - /path/what=all;client=bar - /path/what=all;client=foo - /path/what=all;client=bar;mode=something - /path/?client=bar;what=today those paths will be internal rewritten in apache. so i need to check, that client= is not present in the request. there are two further cases: client=; and client=sitemap they can be redirected to https. i tried a few ways but they didn't work. i either get a 503 Server not available or all the client=xxx requests are redirected to https. i tried: acl clientCheck urlp_reg /client=(?!(sitemap|;)).+/ redirect scheme https code 301 if !clientCheck or acl clientCheck path_reg /client=/ redirect scheme https code 301 if !clientCheck Try escaping equal sign: acl clientCheck path_reg /client\=/ any hints? thanxs markus