- AuthType Basic
- AuthName "restricted area"
- AuthUserFile /private/.htpass
- require valid-user
- 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(/|$)
- RedirectMatch 403 /vendor(/|$)
- RedirectMatch 403 /composer\.(json|lock)
- </IfModule>
- <IfModule mod_rewrite.c>
- SetEnv HTTP_MOD_REWRITE On
- Options -MultiViews
- RewriteEngine On
- RewriteBase /test/
- RewriteCond %{REQUEST_URI} ^(.*)$
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_URI} !^/private/.*$
- 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>