htaccess redirects not working after a while
Miguel González
miguel_3_gonzalez at yahoo.es
Mon Dec 10 10:25:27 UTC 2018
Hi,
I have the following setup:
Apache SSL (proxy) -> Varnish -> Apache non SSL (Wordpress backend)
I have in place several redirects in htaccess so if someone wants to
reach the non-SSL site, is redirected to SSL:
http://www.mydomain.com -> https://www.mydomain.com
http://mydomain.com -> https://www.mydomain.com
I do this with the following:
RewriteCond %{HTTP_HOST} !^www.mydomain.com$ [NC]
RewriteRule ^(.*)$ https://www.mydomain.com/$1 [L,R=301]
However I realized that from time to time redirects stop working and I
have to purge the Varnish cache and then the redirects work again.
Why is that?
Regards,
Miguel
---
This email has been checked for viruses by AVG.
https://www.avg.com
More information about the varnish-misc
mailing list