Advertisement
Guest User

JustFans htacess file

a guest
Sep 19th, 2022
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 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. # Direct all requests to /public folder
  10. RewriteCond %{REQUEST_URI} !/public
  11. RewriteRule ^(.*)$ public/$1 [L]
  12.  
  13. # Direct all requests to pretty url
  14. RewriteCond %{THE_REQUEST} ^.*/index\.php
  15. RewriteRule ^(.*)index.php$ /$1 [R=301,L]
  16.  
  17. # Disable Directory listing
  18. Options -Indexes
  19.  
  20. # block files which needs to be hidden, specify .example extension of the file
  21. <Files ~ "\.(env|config.js|md|gitignore|gitattributes|lock)$">
  22. Order allow,deny
  23. Deny from all
  24. </Files>
  25.  
  26. </IfModule>
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement