I need to internally rewrite the base URL so that instead of / being mapped to /index.php (default behaviour) it goes to another script named contents.php. I have a simple .
I have stumbled upon this very annoying issue as well. The solution is to disable MultiViews in httpd.conf
, by adding -MultiViews
for needed directory, for example:
Options -Indexes -MultiViews
AllowOverride All
Require all granted
After that, rewrites started to work expected way.
Don't forget to reload Apache after editing configuration files.