Open the Apache configuration file located at /etc/httpd/conf/httpd.conf.
Change AllowOverride None to AllowOverride All inside the DocumentRoot Directory Directive, normally <Directory "/var/www/html">
Then restart Apache: service httpd restart.