Enable .htaccess on Apache2

  1. Enable rewrite module
    http://stackoverflow.com/questions/869092/how-to-enable-mod-rewrite-for-apache-2-2
    https://www.digitalocean.com/community/questions/how-to-active-sudo-a2enmod-rewrite-for-centos
    Solution: Uncomment the mod_rewrite.so line in /etc/httpd/conf/httpd.conf, restart apache, and you should be good to go.
  2. Update directive in .conf (e.g. /etc/apache2/sites-available/000-default.conf)
    https://help.ubuntu.com/community/EnablingUseOfApacheHtaccessFiles