• Hi Guys, New user here.
    I am building a new WP site to replace my old site made elsewhere.
    My question is, I am inserting links to internal pages in the new site, which include the CURRENT domain name I am testing on.
    Will these links still work when I transfer the site to replace the old site on its domain, or have I got to put all the links in when it is transferred?

    • This topic was modified 4 years, 11 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    There are a number of migration plugins that will modify that links for you, or you can do it manually with a plugin like “better search replace” before exporting the database on the development site, or you can do it from the command line using wp-cli’s “search-replace” command.

    It’s all pretty straightforward.

    Thread Starter blueflare

    (@blueflare)

    Thanks for the help, since I posted I realised it seems I can just enter the page name into the link field minus the domain name, which I have done on other web builder programs, hopefully, this will still work in the finished site.

    So many things are different with WP to what I am used to, so sure I will be back soon.
    Thanks again, it’s really appreciated

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    That won’t really work, blueflare. Images will use fully qualified domain names, for example. They need to be updated when you migrate from dev to live.

    Thread Starter blueflare

    (@blueflare)

    Ok, my plan is to build onto a live domain I use for testing, then move across to another domain when finished. Example: Build a site on abc.com then move it to xyz.com
    Will that not work?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Yes, that’s what most devs do. Again, use a migration plugin or a database search/replace tool to fix up the domain. Do not try to edit a database dump file as you’ll break things due to serialized content.

    Thread Starter blueflare

    (@blueflare)

    Steve, again thanks, I will check that all out once the site is built, which will take me longer than normal learning everything WP!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Building site on one domain to be moved to another’ is closed to new replies.