Title: Basic URL/Domain Changes
Last modified: February 1, 2019

---

# Basic URL/Domain Changes

 *  [raykraus](https://wordpress.org/support/users/raykraus/)
 * (@raykraus)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/basic-url-domain-changes/)
 * I have a new web site that I have developed, but can’t use the existing name 
   or URL. I use stablehost to host the site. I have not publicized the site, it
   is not available to search engines, yet.
 * Questions:
    1) what is the easiest way to change the domain name and URL? Please
   remember that I don’t need and can’t have the old site available. 2) how do I
   establish redirects so that on the off chance someone tries to access the old
   site, they will automatically be directed to the new site?
 * Note that I have seen some instructions on how to make the switch, but they seem
   overly complicated and focused on those who have established sites. I’m guessing
   there is an easier way.
 * Thanks
    -  This topic was modified 7 years, 4 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
      Reason: moved from networking to fixing
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbasic-url-domain-changes%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 4 months ago](https://wordpress.org/support/topic/basic-url-domain-changes/#post-11158464)
 * 1. If you have command line access, use the wp-cli “search-replace” command. 
   If not, the plugin “better search replace” is the best way to search for `http://
   oldexample.com` and replace with `http://newexample.com` Before doing so, make
   sure that the new domain points to your site.
 * 2. You’d do this via your domain registrar and set up a domain forward.
 * 3.
 *  Thread Starter [raykraus](https://wordpress.org/support/users/raykraus/)
 * (@raykraus)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/basic-url-domain-changes/#post-11158620)
 * Thanks! that sounds like something I can do 🙂

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

The topic ‘Basic URL/Domain Changes’ is closed to new replies.

## Tags

 * [new domain](https://wordpress.org/support/topic-tag/new-domain/)
 * [new URL](https://wordpress.org/support/topic-tag/new-url/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [raykraus](https://wordpress.org/support/users/raykraus/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/basic-url-domain-changes/#post-11158620)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
