Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine on
  3.  
  4. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  5. RewriteBase /
  6.  
  7. RewriteRule ^vendor/(.*)?$ / [F,L]
  8. RewriteRule ^storage/(.*)?$ / [F,L]
  9. RewriteRule ^config.php$ / [F,L]
  10. RewriteRule /\.git / [F,L]
  11. RewriteRule ^composer\.(lock|json)$ / [F,L]
  12.  
  13. RewriteRule ^api(.*)$ api.php [QSA,L]
  14. RewriteRule ^admin(.*)$ admin.php [QSA,L]
  15.  
  16. RewriteCond %{REQUEST_FILENAME} !-f
  17. RewriteCond %{REQUEST_FILENAME} !-d
  18. RewriteRule !^assets index.php [QSA,L]
  19.  
  20. # MultiViews can mess up our rewriting scheme
  21. Options -MultiViews
  22.  
  23. # Autoindex will list all assets files which is not so good
  24. Options -Indexes
  25. </IfModule>