Skip to content

Instantly share code, notes, and snippets.

@Guibzs
Guibzs / .htaccess
Last active Jul 21, 2020
Symfony 4 ~ .htaccess
View .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/
You can’t perform that action at this time.