Centos htaccess not being read

后端 未结 5 1751
终归单人心
终归单人心 2021-02-05 22:44

I\'m working on a new server and I installed via yum the \"Web Server\" group. Php and mysql work fine but I can\'t get .htaccess to work.

Heres my test .htaccess file:<

5条回答
  •  心在旅途
    2021-02-05 23:35

    Go to /etc/httpd/conf/httpd.conf and find below line. htaccess Context is allowed in .htaccess files: AllowOverride All

    Save and close the file. Restart httpd:

提交回复
热议问题