move www.bmj.com to p2.vbz.ffzg.hr
[via-proxy] / providers / www.bmj.com.conf
index 56f69f5..0badb23 100644 (file)
 
        Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p2.vbz.ffzg.hr $3"
        #Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
-       Header edit* Location "https://([a-z]+).bmj.com" "https://$1.bmj.com.p2.vbz.ffzg.hr"
+       Header edit* Location "https://([a-z]+).bmj.com/" "https://$1.bmj.com.p2.vbz.ffzg.hr/"
 
        RequestHeader unset Accept-Encoding
-       # we don't use https:// here because some urls are in javascript with escaped http:\/\/
-       Substitute "s|(\w+)\.bmj\.com|$1.bmj.com.p2.vbz.ffzg.hr|i"
+       # we don't use only https:// here because some urls are in javascript with escaped http:\/\/
+       Substitute "s|https://(\w+)\.bmj\.com|https://$1.bmj.com.p2.vbz.ffzg.hr|i"
+       Substitute "s|http://(\w+)\.bmj\.com|https://$1.bmj.com.p2.vbz.ffzg.hr|i"
 
        FilterDeclare NEWPATHS
        FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"