OK, I am moving our WordPress install to the root of the domain. I've tested on a cloned version of the site that if I export and import the posts then they all load correctly - except for the fact that all the URL's are now wrong.

Should I edit each of the tags to make them correct?

    <title>Title Of Example Blog Post</title>
    <pubDate>Sat, 03 Nov 2012 09:45:38 +0000</pubDate>
    <guid isPermaLink="false">http://www.example.com/blog/?p=79</guid>

So - if you see the third tag down is - should I (manually) change the URL in the tag to the correct path?

The reason I ask is because I have done research that shows that the GUID Permalink should remain 'as is' - but I am not sure about the tag.

Thanks for all help!

  • Do you mean all URLs are wrong or some of them are wrong, such as those used in content? – Rarst May 19 '16 at 14:17

I would not recommend changing the XML file.

When you move the WordPress installation to your root directory, you want to change the WordPress URL and Site URL options in your Admin > Settings.

See official WordPress Codex page about Moving WordPress for more details.

You can also manually change "siteurl" and "home" in the database table "wp_options" (through phpMyAdmin or similar).

| improve this answer | |
  • OK thanks - so - does changing the SITE URL also change all Posts' URL as well? – henry May 20 '16 at 3:00
  • Yes. The WordPress URL is where your WordPress installation lives, and the Site URL is what your website considers home. For example, you might have your WordPress installation living at www.example.com/wordpress. If that's the case, then your WordPress URL will be www.example.com/wordpress, and your Site URL will be www.example.com. Or if your WordPress installation lives at www.example.com, then both your WordPress URL and Site URL will be www.example.com. Whatever comes after the Site URL, (the permalink of posts and pages, etc.), should be fine if it's left on it's own. – Paul Shryock May 20 '16 at 12:34
  • Remember to take a backup of your functioning website before making major changes like this. – Paul Shryock May 20 '16 at 12:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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