.htaccess not working (mod_rewrite)

前端 未结 16 1799
遇见更好的自我
遇见更好的自我 2020-12-08 05:05

I have not having any luck getting my .htaccess with mod_rewrite working. Basically all I am trying to do is remove \'www\' from \"http://www.example.com\" and \"https://ww

16条回答
  •  一个人的身影
    2020-12-08 05:22

    I've had a similar problem..Mod Rewrite enabled, .htaccess permissions are correct, AllowOverride set to All but .htaccess not being read. After hours of pain and searching for an answer this is what my problem was: (hope this helps anyone)

    I've had another virtual host's site enabled besides the one I was testing and it shared a common Directory root (/var/www) and AllowOverride was set to none for the other site. Solution was simply to disable the other site with "a2dissite"

提交回复
热议问题