2010-10-13 02:22:49 +00:00
|
|
|
### SILVERSTRIPE START ###
|
|
|
|
<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>
|
|
|
|
|
2012-12-13 09:02:56 +13:00
|
|
|
# This denies access to all yml files, since developers might include sensitive
|
|
|
|
# information in them. See the docs for work-arounds to serve some yaml files
|
2013-07-01 12:59:31 +12:00
|
|
|
<Files ~ "\.ya?ml$">
|
2012-12-13 09:02:56 +13:00
|
|
|
Order allow,deny
|
|
|
|
Deny from all
|
|
|
|
</Files>
|
|
|
|
|
2010-10-15 01:18:46 +00:00
|
|
|
ErrorDocument 404 /assets/error-404.html
|
|
|
|
ErrorDocument 500 /assets/error-500.html
|
|
|
|
|
2010-10-13 02:53:34 +00:00
|
|
|
<IfModule mod_rewrite.c>
|
2010-11-18 05:08:12 +00:00
|
|
|
SetEnv HTTP_MOD_REWRITE On
|
2013-04-20 10:31:47 +03:00
|
|
|
RewriteEngine On
|
|
|
|
|
|
|
|
RewriteRule ^vendor(/|$) - [F,L,NC]
|
|
|
|
RewriteRule silverstripe-cache(/|$) - [F,L,NC]
|
|
|
|
RewriteRule composer\.(json|lock) - [F,L,NC]
|
2010-11-18 05:08:12 +00:00
|
|
|
|
2010-10-13 02:53:34 +00:00
|
|
|
RewriteCond %{REQUEST_URI} ^(.*)$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
2012-12-04 14:34:54 +13:00
|
|
|
RewriteCond %{REQUEST_URI} !\.php$
|
2012-11-09 09:59:14 +13:00
|
|
|
RewriteRule .* framework/main.php?url=%1 [QSA]
|
|
|
|
|
|
|
|
RewriteCond %{REQUEST_URI} ^(.*)/framework/main.php$
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
RewriteRule . %1/install.php? [R,L]
|
|
|
|
|
2010-10-13 02:53:34 +00:00
|
|
|
</IfModule>
|
|
|
|
### SILVERSTRIPE END ###
|