Home » Wordpress » WordPress setup one database with two different website?

WordPress setup one database with two different website?

Posted by: admin November 30, 2017 Leave a comment

Questions:

Hello Friends I want to setup two website first.com and second.in that are different domain and server.

I want to a same data base in both site with the same content.

means we enter new posts in first.com then after that posts show in both sites.

i want to share every thing in both site like posts,page,comment,etc….

Answers:

hiii renishkhunt just set that two line into your wp-config.php file second.in.

define('WP_HOME','http://second.in');
define('WP_SITEURL','http://second.in');

other then every thing is same in both site like the database connection and prefix etc..