1.In the public_html directory, find your wp-config.php file and right-click to Edit.
2.Add the following lines to the file. In this case, http://example.com is your domain name:
define(‘WP_HOME’,‘http://example.com’);define(‘WP_SITEURL’,‘http://example.com’);
保存后,刷新就解决了。
还有可以修据库的数据。
1.Open the wp-options table and check the option_value of siteurl and home to see .
UPDATE wp_options SET option_value = replace(option_value, '我的世界', 'newurl.com') WHERE option_name = 'home' OR option_name = 'siteurl';UPDATE wp_posts SET guid = replace(guid, '我的世界','newurl.com');UPDATE wp_posts SET post_content = replace(post_content, '我的世界', 'newurl.com');
UPDATE wp_postmeta SET meta_value = replace(meta_value,’我的世界
‘,’newurl.com’);
这样就解决困扰多时的问题了。