How Check and Fix Broken Links?

Well in my case broken links was caused when the client did a minor domain change from “.ai” to “.com” all message links within the forum became broken am sure there was likely an easier way to fix. But I just manually edited many posts to change the .ai to .com. Also have had to use rebuild html to fix uploaded images in posts. Quite the nuisance.