Linux Apache2 Redirect

if you ever have a problem with Site.com/page/ returning an error, look into your apache file

in /etc/apache2/apache2.conf

either download and edit or navigate there and load via your favorite tool (ie Nano, vi, etc)

Change “AllowOverride” from “None” to “All”.

<Directory />
Options FollowSymLinks
      AllowOverride All
Require all denied
</Directory>

<Directory /var/www/>
Options Indexes FollowSymLinks
      AllowOverride All
Require all granted
</Directory>

 

Reload Apache2 (run the following command in Linux)

systemctl restart apache2