How to change all body copy absolute URLs to relative URLs?

We have a new large dev site, 500+ pages/posts in WordPress.

Unfortunately, our staff added a lot of [dev.domainname.com](https://dev.domainname.com)/about-us URLs instead of /about-us relative URLs.

I tried Better Search and Replace, but that broke all our links so bad that I had to do a site restore.

Any way to make our [dev.domainname.com]) links change to relative links so we can go live with our new site? Thanks.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer