duanlvji4780
duanlvji4780
2018-07-21 15:21

Wordpress主页301重定向到localhost

已采纳

I've just moved a WordPress website from my local machine to the server. All the normal steps were done, such as updating the SQL database and setting it all up. The only problem is the homepage is 301 redirecting to my local URL even though it has the correct URL to go to. The rest of the website is fine including the admin area. So far I've done the following:

  1. Checked the SQL database to look for any localhost URL's
  2. Defined the wp_home and wp_siteurl in the wp-config file
  3. Also defined it in the functions file
  4. Disabled caching
  5. Flushed the permalinks
  6. Disabled plugins
  7. Checked for hardcoded URL's in the PHP
  8. Deleted the .htaccess file and created a brand new one

Any further ideas please?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • duanchen9594 duanchen9594 2年前

    The solution to the problem was just browser caching, just needed to load it in a different browser which was cache free

    点赞 评论 复制链接分享