summaryrefslogtreecommitdiff
path: root/files/include.d/silverstripe.inc
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-12-16 17:29:02 -0500
committerMicah Anderson <micah@riseup.net>2013-12-16 17:29:02 -0500
commit15757eb2334e614bc90c8d5235834352f72261e4 (patch)
treef3a3783b50d782b0d8ca76a7884c64e3cbc08dd9 /files/include.d/silverstripe.inc
parent6158f2ad0cb07159b922b6036013a7be1e4dbab5 (diff)
parent88dc913a5da951b1a261b6cc6d9767aaf641287d (diff)
Merge branch 'master' of labs.riseup.net:module_apache into riseup
Diffstat (limited to 'files/include.d/silverstripe.inc')
-rw-r--r--files/include.d/silverstripe.inc17
1 files changed, 17 insertions, 0 deletions
diff --git a/files/include.d/silverstripe.inc b/files/include.d/silverstripe.inc
new file mode 100644
index 0000000..40c44e4
--- /dev/null
+++ b/files/include.d/silverstripe.inc
@@ -0,0 +1,17 @@
+# silverstripe .htaccess
+<Files *.ss>
+ Order deny,allow
+ Deny from all
+ #Allow from 127.0.0.1
+</Files>
+
+<IfModule mod_rewrite.c>
+ RewriteEngine On
+ #RewriteBase /
+
+ RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)
+
+ RewriteCond %{REQUEST_URI} ^(.*)$
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
+</IfModule>