Title: Same data into two different domains
Last modified: August 22, 2016

---

# Same data into two different domains

 *  [ravikumarvegulla](https://wordpress.org/support/users/ravikumarvegulla/)
 * (@ravikumarvegulla)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/same-data-into-two-different-domains/)
 * Hello Every one,
 * Previously i created an domain and created all the pages with some plugins and
   images..Now we have created a new domain with other name in the same database,
   And now the question is, can i transfer all the data from previous domain to 
   the newly created one.
 * Right now i have routed the old domain to new domain address… so the landing 
   page is showing with he new domain name but where as if i go into any other pages
   or links old domain name is being showed in the address bar.
 * Any one please sort out my problem.
 * Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [The Grey Parrots](https://wordpress.org/support/users/greyparrots/)
 * (@greyparrots)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/same-data-into-two-different-domains/#post-5390705)
 * Add these two lines to your wp-config.php, where “example.com” is the new site
   url.
 * define(‘WP_HOME’,’[http://example.com&#8217](http://example.com&#8217););
    define(‘
   WP_SITEURL’,’[http://example.com&#8217](http://example.com&#8217););
 * It will make teh update on the database. After that delete these lines.
 *  [baljit12](https://wordpress.org/support/users/baljit12/)
 * (@baljit12)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/same-data-into-two-different-domains/#post-5390724)
 * Are you tries this…?
    I am Looking for the Same Query.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Same data into two different domains’ is closed to new replies.

## Tags

 * [change](https://wordpress.org/support/topic-tag/change/)
 * [problem](https://wordpress.org/support/topic-tag/problem/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [baljit12](https://wordpress.org/support/users/baljit12/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/same-data-into-two-different-domains/#post-5390724)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
