WordPress.org

Forums

[resolved] Update URLs after domain mapping? (3 posts)

  1. walkingpaper
    Member
    Posted 1 year ago #

    Hi all - thanks in advance for your time!

    Here's my question: Let's say I have a Multisite site going at:

    123.foo.com

    In creating the site I'm making all sorts of pages like:

    123.foo.com/awesome
    123.foo.com/radical

    In the body of some pages, I'm linking to other pages using absolute URLs <a href="http://123.foo.com/awesome">Awesome page</a>

    Eventually I'm going to use domain mapping so that 123.foo.com is displayed as coolsite.com

    The pages I made will now be:

    coolsite.com/awesome
    coolsite.com/radical

    ...but the links I wrote will still use the subdomain.

    Will the old links resolve to the new page? And if not, aside from using phpMyAdmin to update these links, is there a way to update them?

    Or is this totally stupid and I should just be using relative URLs when I make links?

  2. spherical
    Member
    Posted 1 year ago #

    Relative is the better way to go. Not only does it take care of the issue you posted, it prevents self-pings.

  3. Will the old links resolve to the new page? And if not, aside from using phpMyAdmin to update these links, is there a way to update them?

    No, the old links need to be updated.

    I just use PHP myadmin to search/replace for it in the wp_x_posts tables. That's all you need to edit. VelvetBlue's URL replacer should work too.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.