Skip to content

Instantly share code, notes, and snippets.

@MikSDigital
Forked from Guibzs/.htaccess
Created October 28, 2018 16:23
Show Gist options
  • Save MikSDigital/d46f94a03bfb989c036b91e46e1987ba to your computer and use it in GitHub Desktop.
Save MikSDigital/d46f94a03bfb989c036b91e46e1987ba to your computer and use it in GitHub Desktop.
Symfony 4 .htaccess
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
<IfModule !mod_rewrite.c>
<IfModule mod_alias.c>
RedirectMatch 302 ^/$ /index.php/
</IfModule>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment