SHOW:
|
|
- or go back to the newest paste.
1 | ### SILVERSTRIPE START ### | |
2 | <Files *.ss> | |
3 | Order deny,allow | |
4 | Deny from all | |
5 | Allow from 127.0.0.1 | |
6 | </Files> | |
7 | ||
8 | <Files web.config> | |
9 | Order deny,allow | |
10 | Deny from all | |
11 | </Files> | |
12 | ||
13 | # This denies access to all yml files, since developers might include sensitive | |
14 | # information in them. See the docs for work-arounds to serve some yaml files | |
15 | <Files ~ "\.ya?ml$"> | |
16 | Order allow,deny | |
17 | Deny from all | |
18 | </Files> | |
19 | ||
20 | ErrorDocument 404 /assets/error-404.html | |
21 | ErrorDocument 500 /assets/error-500.html | |
22 | ||
23 | <IfModule mod_alias.c> | |
24 | RedirectMatch 403 /silverstripe-cache(/|$) | |
25 | RedirectMatch 403 /vendor(/|$) | |
26 | RedirectMatch 403 /composer\.(json|lock) | |
27 | </IfModule> | |
28 | ||
29 | <IfModule mod_rewrite.c> | |
30 | SetEnv HTTP_MOD_REWRITE On | |
31 | RewriteEngine On | |
32 | ||
33 | RewriteCond %{REQUEST_URI} ^(.*)$ | |
34 | RewriteCond %{REQUEST_FILENAME} !-f | |
35 | RewriteCond %{REQUEST_URI} !\.php$ | |
36 | RewriteRule .* framework/main.php?url=%1 [QSA] | |
37 | ||
38 | RewriteCond %{REQUEST_URI} ^(.*)/framework/main.php$ | |
39 | RewriteCond %{REQUEST_FILENAME} !-f | |
40 | RewriteRule . %1/install.php? [R,L] | |
41 | ||
42 | </IfModule> | |
43 | ||
44 | - | ### SILVERSTRIPE END ### |
44 | + | ### SILVERSTRIPE END ### |
45 | ||
46 | php_value date.timezone "Your/TimeZone" |