Centos htaccess not being read

后端 未结 5 1754
终归单人心
终归单人心 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:36

    1. /etc/httpd/conf/httpd.conf:replace AllowOverride None to AllowOverride All

    2. httpd -M | grep rewrite_module should result

    rewrite_module (shared)

    Still not working even after making sure all above in place? Then make sure your .htaccess has below line at the top.

    RewriteEngine On
    

提交回复
热议问题