Skip to content

Instantly share code, notes, and snippets.

@Guibzs Guibzs/.htaccess
Last active Apr 18, 2019

Embed
What would you like to do?
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>
@elexfreeman

This comment has been minimized.

Copy link

elexfreeman commented Nov 30, 2018

thx very mach

@DmytroUhlach

This comment has been minimized.

Copy link

DmytroUhlach commented Feb 6, 2019

Thank you!

@Sindidi

This comment has been minimized.

Copy link

Sindidi commented Feb 14, 2019

Thank you

@furkan54gs

This comment has been minimized.

Copy link

furkan54gs commented Feb 21, 2019

Thank you very much !

@medmek

This comment has been minimized.

Copy link

medmek commented Mar 11, 2019

Hey thank you 👍

In symfony, should this .htaccess be in public or root ?

@Aviortheking

This comment has been minimized.

Copy link

Aviortheking commented Mar 20, 2019

Hey thank you

In symfony, should this .htaccess be in public or root ?

in the public folder

@miertschink

This comment has been minimized.

Copy link

miertschink commented Apr 5, 2019

Works fine - thx
just in case somebody is searching for:
I got a 403 Forbidden on All-inkl when using Symfony 4 and public as Domain-Root configured in the KAS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.