404 error - Moved to new server, all pages work EXCEPT home page (page not found)

admin2025-01-07  4

I've got the opposite problem a lot of people can when switching servers. All the pages work fine, EXCEPT the home page, which is generating a 404. It's just the blog URL by itself (mysite/blogfolder/). Wordpress is installed in a folder in the site root, and worked fine at the old host. htaccess is all what it is supposed to be for this kind of installation. What could cause this??

I've got the opposite problem a lot of people can when switching servers. All the pages work fine, EXCEPT the home page, which is generating a 404. It's just the blog URL by itself (mysite.com/blogfolder/). Wordpress is installed in a folder in the site root, and worked fine at the old host. htaccess is all what it is supposed to be for this kind of installation. What could cause this??

Share Improve this question asked Dec 16, 2016 at 19:06 Michael SnowMichael Snow 312 bronze badges
Add a comment  | 

3 Answers 3

Reset to default 0

If you are using a static page as homepage, make sure that the page which you were using as static homepage actually exists.

https://stackoverflow.com/questions/40186902/virtualhost-sets-the-url-as-abc-com-subdirectory/40187170#40187170

Have a look at this. It's fairly the same scenario.

I had the same problem after Ubuntu Upgrade 16.04 to 18.04, and it was solved by pressing "Purge Caches" in /wp-admin/admin.php?page=w3tc_objectcache

Try the following:

  1. Ensure that you have the right URL for Wordpress & Site Address in Settings > General
  2. Save permalinks in Settings > Permalinks
  3. Update the 'Your Homepage displays' in Settings > Readin
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736262128a794.html

最新回复(0)