Double domain of WordPress

Can WordPress binding double domain?Most people will tell you not,but I have a unique skill to set it,now, follow me!
Suppose you have two domain such as abc.com and efg.com,and then you must open your FTP services.
Open your wordpress dir and find out the file “wp-config.php” and add some code as follow:
$_asdfasdf_myurl = ‘http://’.$_SERVER['HTTP_HOST'];
define(‘WP_HOME’, $_asdfasdf_myurl);
define(‘WP_SITEURL’, $_asdfasdf_myurl);
unset($_asdfasdf_myurl);
Then,you can also edit the URLs in wordpress data table by run the SQL statement “update TABLENAME set FIELDNAME = replace (FIELDNAME,’EFG.COM’,'ABC.COM’)”. This statement means replace “ABC.COM” from “EFG.COM” in FIELDNAME , TABLENAME.
Up to this, your wordpress can binding double domain ,now, go and set the Domain !
No comments yet.