如何更改我的wordpress域名? [英] How to change my wordpress domain name?
问题描述
我将我的 WordPress网站托管在WordPress服务器上.现在,我已经注册了一个新域名,名为 example.ml
.如何将WordPress URL更改为新域名?
I have my WordPress site hosted on WordPress server. Now, I have registered a new domain name say example.ml
. How can I change the WordPress URL to new domain name?
我需要将文件完全移到新主机上吗?是否可以向WordPress托管的网站添加URL.
Do I need to completely move my files to a new host to do this? Is it possible to add URL to a site hosted on WordPress.
乐于助人.
推荐答案
好吧,您至少可以检查Wordpress Codex网站.此处
Well, you could at least check the Wordpress Codex site. here
您需要编辑WP-config.php
You need to edit the WP-config.php
define('WP_HOME',' http://yournewdomain.com ');define('WP_SITEURL',' http://yournewdomain.com ');
define('WP_HOME','http://yournewdomain.com'); define('WP_SITEURL','http://yournewdomain.com');
这篇关于如何更改我的wordpress域名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!