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 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

  • we need to allow the override¬†all¬†option in httpd.conf (location: /etc/httpd/conf/httpd.conf)
  • <Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
    <Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted

    Leave a Reply