How do I enable .htaccess on Apache Server?



I want to use .htaccess file on my server which is a VPS that is running Apache. How do I enable .htaccess to work?



Find your http.conf. Search for this line.

AllowOverride None

Change it to as follows and restart the server.
AllowOverride All

Thanks. It worked.