.htaccess file configuration to apache

Write .htaccess file according to your need and to configure it do these steps: First Step Open file as sudo vim /etc/apache2/apache2.conf Second Step remove comment sign (#) if you find it before this line ( line number 187 approx.) AccessFileName .htaccess Third Step Then find the line where there is <Directory /var/www/> Options Indexes … More .htaccess file configuration to apache