All pages except for home giving 404 error

[ad_1]

I recently migrated a website to new server. Everything was running well, then a PHP error caused the whole site to go down. The host support helped me get the PHP updated. However, then only the home page was working with some theme issues. Got the theme back up and running and updated. But the other pages are still giving 404 errors. ” The resource requested could not be found on this server! ”

​

Does anyone have any suggestions for how to resolve this? I’m not super website savvy.

[ad_2]
3 Comments
  1. WordPress requires some settings at the server level to redirect all traffic to the WordPress app itself. My guess is that this configuration got messed up somehow. If your server is running Apache, this configuration would be in a .htaccess file in your web root directory (wherever WordPress is installed). You may want help from your host again, but see if they can make sure the .htaccess file didn’t get deleted or turned off. When WordPress was installed, the app should have added something like the following to the file:

    `RewriteBase /`
    `RewriteRule ^index.php$ – [L]`
    `RewriteCond %{REQUEST_FILENAME} !-f`
    `RewriteCond %{REQUEST_FILENAME} !-d`
    `RewriteRule . /index.php [L]`

    If you are using a different web server, like nginx for example, then, well, the settings may be different.

  2. Login to your dashboard and go to general settings on the left. Click the permalink button and just click save. No need to change anything. See if that fixes it.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer