a celebration of womenskhong familysmi sitios de disenomy site cheap technologymuseum plannersnew cesar duboweddings and hair stylessim fleckssiphones chilenew phones blog

SEARCH

About WPClassroom.com

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.
Upcoming Classes

Class: WordPress for Intermediates: Themes and Child Themes
Date: Wednesday, May 9th, 2012

Class: WordPress for Beginners
Date: Tuesday, May 22nd, 2012

Class: Extending WordPress for Beginners
Date: Wednesday, May 23rd, 2012

Stay Informed

Receive email alerts when new classes are scheduled!

Twitter

Receive email alerts when new classes are scheduled!

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.

change-wordpress-blog-url

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''

Comments

8 Comments
  1. kCoder

    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

  2. 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

  3. 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

  4. sal

    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

  5. 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

  6. Brad Williams

    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

  7. shaun

    hey Sal,

    did you ever get a solution?

    Comment by shaun on June 13, 2011 at 4:43 pm

  8. Sal

    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