Skip to content

Instantly share code, notes, and snippets.

@gthln
Forked from tomraithel/.htaccess 2
Last active October 29, 2021 12:29
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save gthln/7086259 to your computer and use it in GitHub Desktop.
Save gthln/7086259 to your computer and use it in GitHub Desktop.
.htaccess for Laravel at Domainfactory, replaces .htaccess in public
<IfModule mod_rewrite.c>
Options +FollowSymLinks
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
@luebbert42
Copy link

I had to use RewriteRule ^ index.php [QSA,L] to keep the GET params. :-) Anyway thanks for the gist!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment