如何解决 Wordpress 中的重新加载问题?

How to solve Reloading Issue in Wordpress?

我的wamp服务器端口号有问题,它被我的系统进程占用了。

因此,我将 http.conf 中的端口号更改为 81,并使用端口号 81 在 wordpress 中完成了一个项目,即 localhost:81

现在,我解决了 wordpress 中的端口问题,并将端口更改为默认端口 (80)。

所有其他本地项目都在运行,但在 wordpress 中开发的项目不可用

正在从 localhost/wordpress_project/ 重定向 至 localhost:81/wordpress_project/

不知道为什么会出现这个问题?

没有数据库连接问题。

有人可以帮我吗??

请确保您的网站 siteurlhomeurl 出现在 wp_options table 中

localhost/wordpress_project/

而不是

localhost:81/wordpress_project/

运行 这个查询,它会将您的站点 url 更新为新的 url.

UPDATE wp_options SET option_value = replace(option_value, 'http://localhost:81/wordpress_project/', 'http://localhost/wordpress_project/') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET guid = replace(guid, 'http://localhost:81/wordpress_project/','http://localhost/wordpress_project/');

UPDATE wp_posts SET post_content = replace(post_content, 'http://localhost:81/wordpress_project/', 'http://localhost/wordpress_project/');

UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://localhost:81/wordpress_project/', 'http://localhost/wordpress_project/');