Open sudo vi /etc/httpd/conf/httpd.conf Find the section and change AllowOverride None to AllowOverride All. <Directory /var/www/html> AllowOverride All </Directory> Restart Apache to effect sudo systemctl restart httpd