Advertisement
sanjiisan

Untitled

Aug 1st, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. RewriteEngine on
  2. Options -Indexes
  3.  
  4. <IfModule mod_rewrite.c>
  5. Options +FollowSymLinks
  6. RewriteBase /
  7. RewriteCond %{REQUEST_URI} !^public
  8. RewriteRule ^(.*)$ frontend/web/$1 [L]
  9. </IfModule>
  10.  
  11. # Deny accessing below extensions
  12. <Files ~ "(.json|.lock|.git)$">
  13. Order allow,deny
  14. Deny from all
  15. </Files>
  16.  
  17. # Deny accessing dot files
  18. RewriteRule (^\.|/\.) - [F]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement