Skip to content

Instantly share code, notes, and snippets.

@msonowal
Forked from feload/.htaccess
Created November 2, 2015 11:13
Show Gist options
  • Save msonowal/0d8061018fd4174a094a to your computer and use it in GitHub Desktop.
Save msonowal/0d8061018fd4174a094a to your computer and use it in GitHub Desktop.
Laravel .htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment