Closed (fixed)
Project:
Octopus
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Feb 2012 at 23:28 UTC
Updated:
13 Mar 2012 at 06:10 UTC
Hi,
I want to use a kind of adaptive image styles for my responsive design.
The module instructions are to patch the .htaccess file with the following rule.
# AIS: Adaptive Image Style
RewriteBase /
RewriteCond %{REQUEST_URI} ^(.+)/files/styles/adaptive/(.+)$
RewriteCond %{REQUEST_URI} !/modules/image/sample.png
RewriteCond %{HTTP_COOKIE} ais=([a-z0-9-_]+)
RewriteRule ^(.+)/files/styles/adaptive/(.+)$ $1/files/styles/%1/$2 [R=302,L]
Since this is only for Apache, can you tell me if there is an equivalent to this for Nginx / Aegir?
Or else do you have a tip for using adaptive images in my content?
Thanks in advance!
see also http://drupal.org/project/ais
Comments
Comment #1
omega8cc commentedAdded in commits:
http://drupalcode.org/project/octopus.git/commit/1da06ac
http://drupalcode.org/project/octopus.git/commit/f5fb1bf
Comment #2
Fonkel commentedYou guys rock!