Now assuming that everything is installed, open the httpd conf file and start editing it,
You can find this file in
/etc/httpd/conf/httpd.confor directly edit it
vi /etc/httpd/conf/httpd.confin this file search for Directory “/var/www/html” this can be on line 290-320
You will find a line of code, just like below
AllowOveride NoneJust change it to
AllowOveride AllSave it, and exit, mod_rewrite is enabled on your server.