我的WordPress网站的主页显示Godaddy页面,所有其他页面都很好

发布于 2025-02-04 18:17:43 字数 97 浏览 3 评论 0原文

我有一个WordPress网站,该网站托管在Hostinger上。问题是主页会自动显示我未创建的Godaddy页面。否则所有其他页面都可以正常工作。有人可以在这里帮助我解决这个问题

I have a wordpress website which after completion, hosted on hostinger. The problem is the homepage automatically shows the godaddy page which I have not created. Else all other pages are working fine. Someone can here can please help me out with this problem

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

枫林﹌晚霞¤ 2025-02-11 18:17:43

请检查您是在root Directory中安装的WordPress网站( https://example.com )或sub-directory(< a href =“ https://example.com/wp/” rel =“ nofollow noreferrer”> https://example.com/wp/ )。如果在子目录中安装,请考虑重新安装或更改为root Directory并更改数据库中的URL。 MySQL查询将就像 -

UPDATE wp_options SET option_value = replace(option_value, 'oldurl.com', 'newurl.com') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET guid = replace(guid, 'oldurl.com','newurl.com');

UPDATE wp_posts SET post_content = replace(post_content, 'oldurl.com', 'newurl.com');

UPDATE wp_postmeta SET meta_value = replace(meta_value,'oldurl.com','newurl.com');

希望这有所帮助。

Please check you are installed WordPress site in root directory (https://example.com) or in sub-directory (https://example.com/wp/). If installed in subdirectory, consider re-install or change to root directory and change URL in database. MySQL query will be like -

UPDATE wp_options SET option_value = replace(option_value, 'oldurl.com', 'newurl.com') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET guid = replace(guid, 'oldurl.com','newurl.com');

UPDATE wp_posts SET post_content = replace(post_content, 'oldurl.com', 'newurl.com');

UPDATE wp_postmeta SET meta_value = replace(meta_value,'oldurl.com','newurl.com');

Hope this help.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文