WebFaction
Community site: login faq

I already have a site running at www.example.com on wordpress...I also have a wordpress site running at www.new.example.com - Can I switch the subdomain to www.example.com? Thanks

asked 21 Feb '11, 22:01

wesleysoccer
2121125
accept rate: 0%


Hi,

Yes , you can but you would also eed t update the Site URL for your Wordpress installation.

The easiest way to do that is

http://codex.wordpress.org/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database

Hope that helps!

permanent link

answered 21 Feb '11, 22:06

neeravk
1.5k3412
accept rate: 41%

Also doing a find replace in SQL for your old url and then replacing it with the new is a good idea:

update wp_posts set guid = replace(guid, 'oldurl.com', 'newurl.com');

I run that on the content column as well. Helps to catch any broken links you might have.

permanent link

answered 23 Feb '11, 00:34

SwitchBlade
525
accept rate: 0%

edited 23 Feb '11, 00:35

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×245

question asked: 21 Feb '11, 22:01

question was seen: 2,718 times

last updated: 23 Feb '11, 00:35

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2021 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM