Htaccess File

antoniodltm/iwg/master/sites/all/themes/visia/images/.htaccess

HTTP_COOKIE, REQUEST_FILENAME
<IfModule mod_rewrite.c>

    Options -MultiViews
      RewriteEngine on
      RewriteCond %{HTTP_COOKIE} HTTP_IS_RETINA [NC]
      RewriteCond %{REQUEST_FILENAME} !@2x
      RewriteRule ^(.*).(gif|jpg|png)$ $1@2x.$2
      # if @2x isn't available fulfill the original request
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(.*)@2x.(gif|jpg|png)$ $1.$2

</IfModule>
Exit mobile version