Skip to content

Instantly share code, notes, and snippets.

@ahmed-bhs
Last active December 29, 2018 18:41
Show Gist options
  • Save ahmed-bhs/46c468fc81467e279d56c615341db8b1 to your computer and use it in GitHub Desktop.
Save ahmed-bhs/46c468fc81467e279d56c615341db8b1 to your computer and use it in GitHub Desktop.
symfony 4 mod rewrite url
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ public/index.php [QSA,L]
</IfModule>
<IfModule !mod_rewrite.c>
<IfModule mod_alias.c>
RedirectMatch 302 ^/$ public/index.php/
</IfModule>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment