SEARCH
How To: Change Your WordPress URL
Posted in: Tutorials by Brad Williams on July 6, 2009
There are two places you need to update your WordPress URL when you plan on changing it. They are both located under the General > Settings SubPanel. Update the “WordPress address (URL)” and “Blog address (URL)” values to the new URL for your website.
This is a great tip if you are launching a new or rebranded WordPress website. Development can happen on http://new.mydomain.com until you are ready to launch.
Optionally if you would like to update this value directly in your WordPress database just run the query below. Make sure you update the value in the query to your new domain before running:
UPDATE wp_options SET option_value = 'http://mydomain.com/' WHERE option_name = 'siteurl' OR option_name = 'home''
WPClassroom.com is dedicated to providing high quality professional WordPress training. Our instructors are very knowledgeable on WordPress, as well as teaching that in an easy to understand method.


Comments
If you have WordPress 2.2 or higher, you can actually change the url without any database change. See here: Word Blog URL change without Database Query
Comment by kCoder on March 25, 2010 at 7:40 pm
If you want to make direct queries on the database there is an online tool to generate sql queries to Change a wordpress URL. It is licenced under a creative commons license, and written in simple Javascript / HTML.
Comment by Jonathan Rose on June 14, 2010 at 5:46 am
Should I change mine to the www version? I have on another site and it seemed to not effect my rank.. Does wordpress add a redirect to this
Comment by Media Chandler on January 27, 2011 at 10:36 pm
Hey guys, I changed both addresses (seen in screen shot above) from http://www.replayimage.com/wordpress to just http://www.replayimage.com.
Now I can’t view my site anymore. Sorry but im new to this and dont know how to add wordpress back to it. The reason I want to put it back is because Im not ready to launch yet and would rather have everything ready and then remove the wordpress from URL for good.
Help is greatly appreciated!
Sal
Comment by sal on February 21, 2011 at 10:36 am
Thanks kCoder – you’re right! I just did it with a niche site. Just go into Settings in the WordPress dashboard and change the Site Address url.
Comment by Christie on March 7, 2011 at 10:16 pm
I prefer the non-www URLs, but that’s just my preference. Ultimately it really shouldn’t matter
Comment by Brad Williams on June 1, 2011 at 9:01 pm
hey Sal,
did you ever get a solution?
Comment by shaun on June 13, 2011 at 4:43 pm
Hi Shaun, yes I did. I had to move all my files to the root directory rather than keep them in the “WordPress” folder.
Thanks for following up.
Comment by Sal on July 11, 2011 at 1:16 pm