-
-
Save gthln/7086259 to your computer and use it in GitHub Desktop.
.htaccess for Laravel at Domainfactory, replaces .htaccess in public
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
Options +FollowSymLinks | |
Options -MultiViews | |
RewriteEngine On | |
RewriteBase / | |
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
I had to use RewriteRule ^ index.php [QSA,L] to keep the GET params. :-) Anyway thanks for the gist!