Advertisement
Guest User

Untitled

a guest
May 20th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 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. AllowOverride all
  20. Options -FollowSymLinks +SymLinksIfOwnerMatch
  21. HostnameLookups off
  22. ErrorDocument 404 /assets/error-404.html
  23. ErrorDocument 500 /assets/error-500.html
  24.  
  25. <IfModule mod_rewrite.c>
  26. SetEnv HTTP_MOD_REWRITE On
  27. RewriteEngine On
  28. RewriteBase '/'
  29.  
  30. RewriteCond %{HTTP_HOST} ^www\.learningstaircase\.co\.nz$ [NC]
  31. RewriteRule ^(.*)$ http://learningstaircase.co.nz/$1 [R=301,L]
  32.  
  33. RewriteRule ^vendor(/|$) - [F,L,NC]
  34. RewriteRule silverstripe-cache(/|$) - [F,L,NC]
  35. RewriteRule composer\.(json|lock) - [F,L,NC]
  36.  
  37. RewriteRule ^learningstaircase\.co\.nz/steps/($|/) - [L]
  38. RewriteRule ^(xcache)($|/) - [L]
  39. RewriteCond %{REQUEST_URI} ^(.*)$
  40. RewriteCond %{REQUEST_FILENAME} !-f
  41. RewriteCond %{REQUEST_URI} !\.php$
  42. RewriteRule .* framework/main.php?url=%1&%{QUERY_STRING} [L]
  43. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement