Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  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 *.yml>
  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_rewrite.c>
  24. SetEnv HTTP_MOD_REWRITE On
  25. RewriteEngine On
  26. RewriteBase '/'
  27.  
  28. RewriteRule ^vendor(/|$) - [F,L,NC]
  29. RewriteRule silverstripe-cache(/|$) - [F,L,NC]
  30. RewriteRule composer\.(json|lock) - [F,L,NC]
  31.  
  32. RewriteCond %{REQUEST_URI} ^(.*)$
  33. RewriteCond %{REQUEST_FILENAME} !-f
  34. RewriteCond %{REQUEST_URI} !\.php$
  35. RewriteRule .* framework/main.php?url=%1&%{QUERY_STRING} [L]
  36. </IfModule>
  37. ### SILVERSTRIPE END ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement