Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <IfModule mod_rewrite.c>
- RewriteEngine on
- RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
- RewriteBase /
- RewriteRule ^vendor/(.*)?$ / [F,L]
- RewriteRule ^storage/(.*)?$ / [F,L]
- RewriteRule ^config.php$ / [F,L]
- RewriteRule /\.git / [F,L]
- RewriteRule ^composer\.(lock|json)$ / [F,L]
- RewriteRule ^api(.*)$ api.php [QSA,L]
- RewriteRule ^admin(.*)$ admin.php [QSA,L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule !^assets index.php [QSA,L]
- # MultiViews can mess up our rewriting scheme
- Options -MultiViews
- # Autoindex will list all assets files which is not so good
- Options -Indexes
- </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement