Multiple Domains with Single WordPress

This day i did a good work with wordpress multi domain with single wordpress site. I think most of the beginners developers and programmers dont know about this. But now all guys will know how to do the multi site with single hosting( wordpress ). I would like to show you how to do that.
Ex. if you have two domains. You want to control the all contents with single back-end for both sites, its possible with wordpress.
First install the wordpress in your primary domain hosting server.
Then Both sites nameserver should be point the primary domain server. Both sites must be point primary site folder(Already you installed wordpress in this location).
Now go to root of the site. Here you can see the wp-config.php. Open the file via ftp or file manager.
Open the file wp-config.php, add the following code :
$_asdfasdf_myurl = ‘http://’.$_SERVER['HTTP_HOST'];
define(‘WP_HOME’, $_asdfasdf_myurl);
define(‘WP_SITEURL’, $_asdfasdf_myurl);
unset($_asdfasdf_myurl);
We know, PHP $ SERVER [ HTTP_HOST ] for obtaining source domain. So, according to WP_HOME and WP_SITEURL from variable assignment, realize Multiple Domains with Single WordPress.
In order to prevent the picture is not available caused by the domain name change , you must set ” Options-media-Store uploads in this folder “ to “ wp-content / uploads” ( as ” the default upload path” the same parameters ).
Now primary domain and secondary loads with single wordpress. You can do multiple domain like this way.
If you have any questions let me know. I can help you.

