How to fix WordPress 404 Errors, requested URL was not found on this server: Home Page works
We often find the issue of the WordPress page not found 404 error when we move the WordPress to another new server. Here will see how to fix the issue.How to install WordPress.com desktop app on Ubuntu
Error: The requested URL was not found on this server.
There could be multiple solutions you can find on the web like:
- Go to settings->permalinks and click on the save button to rewrite flush. And then empty your browser cache.
- Sometimes on a new server it’s just the rewrite module missing from Apache config. So For this
sudo a2enmod rewrite
sudo service apache2 restart
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
To
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>