Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Apache by cbq ( 15 years ago )
### 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>
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>
RewriteEngine On
RewriteBase /
SetEnvIf SERVER_ADDR "192.168.20.228" APPLICATION_ENV=dev
SetEnvIf SERVER_ADDR "192.168.0.7" APPLICATION_ENV=dev
SetEnvIf SERVER_ADDR "192.168.20.1" APPLICATION_ENV=test
SetEnvIf SERVER_ADDR "192.168.1.12" APPLICATION_ENV=live
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
</IfModule>
### SILVERSTRIPE END ###
Revise this Paste