Internal URL rewrite no longer working after upgrading Apache to 2.4

前端 未结 4 1701
迷失自我
迷失自我 2020-12-03 17:35

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 .

4条回答
  •  既然无缘
    2020-12-03 18:06

    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.

提交回复
热议问题