Wordpress WP_SITEURL 和 WP_HOME 值? [英] Wordpress WP_SITEURL and WP_HOME values?

查看:37
本文介绍了Wordpress WP_SITEURL 和 WP_HOME 值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了一个 WordPress,我的网站位于example.com/site".一切正常.

I have a single WordPress installation and my website is at "example.com/site". Everything works great.

我想将我的网站移至example.com".我从托管公司获得的说明在链接 "codex.wordpress.org/Changing_The_Site_URL"

I want to move my site to "example.com". The instructions I got from my hosting company are described at the link "codex.wordpress.org/Changing_The_Site_URL"

我是否只需要将我的 wp-config 文件编辑为以下内容?

Do I simply need to edit my wp-config file to the following ?

define('WP_HOME','http://www.example.com');
define('WP_SITEURL','http://www.example.com/site');

我以前从未这样做过,也不确定 WP_HOME 和 WP_SITEURL 的正确值.你能帮我么.我不想破坏任何东西.

I have never done this before and not sure about the correct values for WP_HOME and WP_SITEURL. Can you please help me. I don't want to break anything.

谢谢

推荐答案

关注即可获取

define('WP_HOME','http://www.example.com');
define('WP_SITEURL','http://www.example.com/');

WP_HOMEWP_SITEURL 必须相同,您也可以更新您的 wp_options 表中的 siteurlhome

WP_HOME and WP_SITEURL must be same, you can also update your siteurl, home in your wp_options table

这篇关于Wordpress WP_SITEURL 和 WP_HOME 值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆