Solved it..
just used another retina plugin with different htaccess:
see http://shauninman.com/tmp/retina/
### SILVERSTRIPE START ###
php_value date.timezone "Europe/Amsterdam"
php_value upload_max_filesize 200M
php_value post_max_size 200M
<Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files>
<Files web.config>
Order deny,allow
Deny from all
</Files>
ErrorDocument 404 /assets/error-404.html
ErrorDocument 500 /assets/error-500.html
<IfModule mod_alias.c>
RedirectMatch 403 /silverstripe-cache(/|$)
</IfModule>
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
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>
### SILVERSTRIPE END ###
Page.ss
in your head use
<script>if((window.devicePixelRatio===undefined?1:window.devicePixelRatio)>1)
document.cookie='HTTP_IS_RETINA=1;path=/';</script>
Posted to: Retina feature in htaccess files | Show Thread | Post Reply