Guest User

Untitled

a guest
Jan 22nd, 2018
1,277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine on
  3.  
  4. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  5. RewriteBase /
  6. RewriteRule ^vendor/(.*)?$ / [F,L]
  7. RewriteRule ^storage/(.*)?$ / [F,L]
  8. RewriteRule ^config.php$ / [F,L]
  9.  
  10. RewriteRule ^api(.*)$ api.php [QSA,L]
  11. RewriteRule ^admin(.*)$ admin.php [QSA,L]
  12.  
  13. RewriteCond %{REQUEST_FILENAME} !-f
  14. RewriteCond %{REQUEST_FILENAME} !-d
  15. RewriteRule !^assets index.php [QSA,L]
  16.  
  17. #start https redirect
  18. RewriteCond %{HTTPS} off
  19. RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
  20. #end https redirect
  21.  
  22.  
  23. # MultiViews can mess up our rewriting scheme
  24. Options -MultiViews
  25.  
  26. # Autoindex will list all assets files which is not so good
  27. Options -Indexes
  28.  
  29. </IfModule>
Add Comment
Please, Sign In to add comment