WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to WP and want to check something before I start down a patch that might not work.

Using WordPress can I easily change the site URL?

For example, I have an existing website visible at www.mysite.com.

I want to build a replacement site in WordPress, and while its being built I want it to appear at test.mysite.com. Once I've got everything set as I want and confirmed working I'd like to then have the same site replace the content of www.mysite.com.

Is that easily doable? I've read a few articles about changing the site url but it seems to be rather complex involving database updates and whatnot. I'd imagine this is a fairly common request.

share|improve this question
You need to setup the subdomain test.mysite.com first. You can do it from the control panel section of your hosting service provider. – Mithun Sreedharan Oct 12 '12 at 10:24
This is something that's been asked and answered many times here. A quick search will give you some very good and detailed solutions. – anu Oct 12 '12 at 11:48
I had tried a search, but didn't hit on what I was looking for so apologies for any duplication. – Rob Oct 12 '12 at 13:20

You can easily update the Site Url in WP, In the general settings of the Admin section (/wp-admin/options-general.php). Be sure the set the correct URL in the 'WordPress Address (URL)' and 'Site Address (URL)' fields.

You may want to check your config file (wp-config.php) too, if you need to switch databases while moving from Test to Live.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.