Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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 P 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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.