summaryrefslogtreecommitdiff
path: root/puppet/modules/apache/files/include.d/silverstripe.inc
blob: 40c44e46ce432eea006afe4db2e2de288dcd5012 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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>