Skip to content

Instantly share code, notes, and snippets.

@kelixlabs
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save kelixlabs/70b23623e64538717680 to your computer and use it in GitHub Desktop.

Select an option

Save kelixlabs/70b23623e64538717680 to your computer and use it in GitHub Desktop.
my htaccess that work with laravel4
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteBase /
# Redirect Trailing Slashes...
#RewriteRule ^(.*)/$ /$1 [L,R=301]
#RewriteRule ^(.*)/$ $1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} (.+)/$
#RewriteRule ^ %1 [L,R=301]
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