Diary: WordPress’s multi domains

      No Comments on Diary: WordPress’s multi domains

Sometimes you need to use more domains for your blog.
 
Like, www.superwbd3.tk  &  superwbd3.tk.
 
If you set one, even if you point your DNS to its ip address, it won't make any difference.
 
So........
 
Just add these to your blog's wp-config.php:
 

$wphome = 'http://'.$_SERVER['HTTP_HOST'];
$wpsiteurl = 'http://'.$_SERVER['HTTP_HOST'];
define('WP_HOME', $wphome);
define('WP_SITEURL', $wpsiteurl);

 
That 's it.
 
 

Leave a Reply

Your email address will not be published. Required fields are marked *