Is there a way to do a universal site-wide search-and-replace to update links?

  • Unknown's avatar

    I changed my domain name from jonahewell.com to kangdaohealth.com, and everything was groovy as long as I had my DNS servers for jonahewell still pointed to wordpress. But then I developed jonahewell.com as a separate site, and now the links that still use jonahewell.com don’t work. I am currently going through and changing them by hand as I find them, but it’s really time consuming and I don’t know if I can ever find them all this way. Please let me know, thank you!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi Jonah!

    Are you referring to links that you’ve manually inserted into posts with the old domain? If so, there isn’t an easy way to fix this. The main method would involve exporting the .xml file from your blog and using the Find/Replace function to replace all of the old URLs with the new domain. Then, I would empty your site of the existing content and you could re-import the new .xml file with the new URLs. Does that make sense? If we go this route, please also keep a non-edited version of your .xml file as a backup.

  • The topic ‘Is there a way to do a universal site-wide search-and-replace to update links?’ is closed to new replies.