WordPress.org

Support

Support » Multisite » [Resolved] Update URLs after domain mapping?

[Resolved] Update URLs after domain mapping?

  • 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Relative is the better way to go. Not only does it take care of the issue you posted, it prevents self-pings.

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Update URLs after domain mapping?’ is closed to new replies.
Skip to toolbar