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

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!

admin

Our team has expertise across software and web development, WordPress, e-commerce, mobile applications, UI/UX, cloud and infrastructure, DevOps, CI/CD, API integration, security, testing, automation, and technical support. The team also works with AI-based software solutions, LLMs, AI workflows, AI agents, and intelligent application development to help businesses automate processes and build smarter digital solutions. We focus on developing, deploying, maintaining, and optimising secure, scalable, and reliable technology solutions while helping businesses adopt modern technologies and drive digital transformation.

Leave a Reply

Scroll to Top