Advertisement
Guest User

Untitled

a guest
Feb 5th, 2022
1,093
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <IfModule mod_rewrite.c>
  2. # That was ONLY to protect you from 500 errors
  3. # if your server did not have mod_rewrite enabled
  4.  
  5. RewriteEngine On
  6. # RewriteBase /
  7. # NOT needed unless you're using mod_alias to redirect
  8.  
  9. RewriteCond %{REQUEST_URI} !/public
  10. RewriteRule ^(.*)$ public/$1 [L]
  11. # Direct all requests to /public folder
  12.  
  13.  
  14. # Disable Directory listing
  15. Options -Indexes
  16.  
  17. # block files which needs to be hidden, specify .example extension of the file
  18. <Files ~ "\.(env|json|config.js|md|gitignore|gitattributes|lock)$">
  19. Order allow,deny
  20. Deny from all
  21. </Files>
  22.  
  23. </IfModule>
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement