转到管理>设置>常规-粘贴https://sitename 在WordPress地址(URL)和网站地址(URL)字段中。

您也可以在wp config中编辑这些值。php中添加以下内容。
define( \'WP_HOME\', \'http://example.com\' );
define( \'WP_SITEURL\', \'http://example.com\' );
或通过编辑wp\\U选项表并编辑“siteurl”和“home”的值,直接在数据库中编辑值。
以下是有关changing the site URL.