Bạn mở file wp-config.php trong thư mục chứa file index.php mã nguồn Wordpress của bạn, và thêm hai dòng sau nếu chưa có:
PHP Code:
define('WP_HOME','http://site_của_bạn.com');
define('WP_SITEURL','http://site_của_bạn.com');
và file functions.php có hai dòng:
PHP Code:
update_option('siteurl','http://example.com');
update_option('home','http://example.com');
Tham khảo thêm bài này: http://codex.wordpress.org/Changing_The_Site_URL
Nếu site của bạn hiện nó cứ có www thì bạn dùng redirect để chuyển bằng cách mở file .htaccess của bạn ra, chỉnh sửa thêm vào đoạn như sau ở đầu file:
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.site_của_bạn.com
RewriteRule (.*) http://site_của_bạn.com/$1 [R=301,L]
Bookmarks