htaccess redirects not working after a while

Miguel González miguel_3_gonzalez at
Mon Dec 10 10:25:27 UTC 2018


  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: -> ->

  I do this with the following:

  RewriteCond %{HTTP_HOST} !^$ [NC]
  RewriteRule ^(.*)$$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?




This email has been checked for viruses by AVG.

More information about the varnish-misc mailing list