rewrite condition to target Via: Varnish 1.1
- by P4ul
I have a Drupal site that uses Varnish.
I am trying to redirect people that come to a url starting with /node when they view the site via Varnish.
I have tried the following in the .htaccess file but it gives 500 errors.
RewriteCond %{HTTP:Via} =1.1 varnish
RewriteRule ^node / [R=301,NC,L]
I haven't been able to find anything using google in relation to how to target the 'Via' section of a header.
Cheers,
Paul