How To Replace URLs In A WordPress Website Tutorial by Pee Aye Creative

How To Replace URLs In WordPress

Nelson Miller Pee Aye Creative
This tutorial will how you how to replace your WordPress URLs if you have migrated your site, imported a demo, went live, or installed an SSL.

When Would You Need To Replace URLs

There are quite a few occasions that you would need to replace the old urls in a site with new ones. Here are few that come to mind:

  • If you have migrated the site to a new domain
  • If you had a site on a staging or temporary site and want to take it live
  • If you installed an SSL certificate and have mixed content errors
  • If you imported a child theme that contained demo links

I’m going to show you how easy it is to replace the URLs in this tutorial.

Join subscribers on our YouTube channel and enjoy other Divi video tutorials!

Install The Plugin Of Your Choice

There are several plugins that will replace URLs for in your website for free in the WordPress repository. I have tested them all, but not in any methodical or thorough way. It seems there are some instances where one works but not the other, and this can depend what you are trying to do. Here are the plugins I have found that are useful for this:

Velvet Blues Update URLs

Go Live Update Urls

Search & Replace

Better Search Replace

I tend to always use Better Search Replace, but I don’t think there is a right or wrong. The process is going to be very similar. All of the plugins add this setting to the Tools menu in your Dashboard. Most of the settings interfaces are very similar.

I had to choose one for the tutorial, so I’m going with the one I have used the most and has the most installs, which is Better Search Replace.

From your WordPress dashboard, go to Plugin>Add New.

Search for “Better Search Replace”

Click “Install”

Click “Activate”

Replace The URLs

Now let’s get started replacing the URLs in your WordPress website. To begin, go to the plugin settings located at Tools>Better Search Replace.

replace demo urls in Divi

In the field that says “Search for” add the url that needs to be replaced.

In the field called “Replace with” add the url 

In the “Select tables” area, click to select one of the items and click Control + A on your keyboard to select all of them. They will become highlighted as selected.

If your url happens to be case-sensitive, then check that, but that’s probably rare.

The plugin has the “Run as dry run?” selected by default. This is because this entire action of replacing URLs could break the site if it is not done carefully. Once you are certain the Search for and Replace with urls are definitely correct, you can uncheck this option and proceed.

And now for the big moment. Click the “Run Search/Replace” button to begin the replacement of the URLS in the site.

Once this is completed, the plugin has finished it’s job, so you can deactivate and delete it.

Last updated [last-modified %date%]


Each month we send out a roundup email newsletter with the latest tutorials, product updates, helpful resources, and any other industry or personal news. Occasionally we send an extra separate email here and there if we just can’t wait! So that’s what you will get if you subscribe, and you can always unsubscribe at any time if you just can’t take it anymore 🙂

Blog Post Optin

Please share this post!

Nelson Lee Miller (aka The Divi Teacher)

Nelson is the owner of Pee-Aye Creative in the beautiful state of Pennsylvania. He loves helping small businesses, exploring outdoors, building websites with Divi, and teaching others.

Leave A Response!

By commenting you agree to our Blog & YouTube Comments Policy


Submit a Comment

Your email address will not be published. Required fields are marked *

Recent Posts


Your Cart