laravel/public/.htaccess

22 lines
597 B
ApacheConf
Raw Normal View History

2011-08-03 22:15:08 -05:00
<IfModule mod_rewrite.c>
2013-12-25 09:57:47 +08:00
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
2013-10-30 10:14:09 -05:00
</IfModule>
2013-06-15 13:15:13 -05:00
RewriteEngine On
2013-04-09 15:37:50 -05:00
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
2015-06-26 08:30:59 -05:00
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
2013-10-26 11:27:40 -05:00
2013-12-25 09:57:47 +08:00
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
2013-06-15 13:15:13 -05:00
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>