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:<
On CentOS7, the following should help:
/etc/httpd/conf/httpd.conf
:replace AllowOverride None to AllowOverride All
LoadModule rewrite_module modules/mod_rewrite.so
AuthUserFile /var/www/.htpasswd
AuthGroupFile /dev/null
AuthName "Please Enter Password"
AuthType Basic
Require valid-user
httpd -t
/bin/systemctl restart httpd.service