How to solve “404 Not Found” error while accessing subpages on website.

Date: 17-01-2021

Step 1: You need to enable Apache2 rewrite module by using below command.
# sudo a2enmod rewrite

Step 2: Restart Apache2.
# sudo systemctl restart apache2

Step 3: Add the below details in your website Apache (etc/apache2/sites-available) configuration file.
<Directory "Document root">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
<Directory>

Step 4: Restart Apache2.
# sudo systemctl restart apache2

Thank you!

Leave a Reply

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny