If the home page of your WordPress site is working but all other pages come back with 404 pages, you likely have a problem with your Permalinks. Fortunately this is easy to fix.
Permalinks are the address that your visitors see and there configuration is stored in the root of your site at the top of a file named .HTACCESS .
The solution is to log into your sites admin page and modify the Permalinks setting:
- Surf to <www.YourDomain.com>/wp-admin and sign in
- Click SETTINGS > PERMALINKS
- Select the first option, PLAIN
- Click Save
- Open a different browser and test your site to see if all the pages work now
- If it does, you can change your PERMALINKS back to whatever it was supposed to be before
- If it does not, FTP into your site and rename .HTACCESS (I would renname it to DELME.HTACCESS so I know I should dump it in the future)
- Go to step 2 above to toggle the Permalinks settings
- You will notice that an .HTACCESS file gets recreated as soon as you make your change
Note that WordPress 5 and above have a cool little health check utility built in that will also show an error if your Permalinks are broken:
- Surf to <www.YourDomain.com>/wp-admin and sign in
- Click DASHBOARD in the left menu
- Scroll to the very bottom and click SITE HEALTH
or you can just surf directly to www.<YourDomainHere>.com/wp-admin/site-health.php
There you may expand one of the errors and see:
The REST API call gave the following unexpected result: (404) <html><head><title>Error 404 – Not Found</title><head><body><h1>Error 404 – Not Found</h1><p>
The document you are looking for may have been removed or re-named. Please contact the web site owner for further assistance.
0 Comments