I have been following Symfony 4 documentation as to how to configure a web server.
https://symfony.com/doc/current/setup/web_server_configuration.html
My .conf file in my apache 2.4 configuration is exactly as described in their documentation. I’m copying part of it here :
<Directory /var/www/project/public>
AllowOverride None
Require all granted
Allow from All
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
</Directory>
Going to my platform, everything works fine but as soon as I’m going to any page, it shows a 404 error. If I add index.php in the url it works fine. Could you help me figure out what is going on?
For example: When I’m on http://myplatform.com/
I can save an email address on this page. If I go to http://myplatform.com/index.php/saveEmail it works, but from my page, my links redirects me to http://myplatform.com/saveEmail and it doesn’t work.
If i go to http://myplatform.com/index.php then everything works fine.
How to I remove index.php from the url ?
Thanks!