enable htaccess apache2 code example
Example 1: apache2 status
sudo systemctl status apache2
Example 2: apache .htaccess Option ubuntu
#For those of you who are using linux and the .htaccess is not working.
You can go to /etc/apache2/apache2.conf and allow override for the /www directory.
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Example 3: enable apache2 site
a2ensite example.com