Your prompt

Scan my site for broken internal and external links. Fix them or add redirects, then send me the list of what you changed.

What this prompt does

This prompt asks your AI assistant to find broken links, both within your site and to other sites, and to deal with them. It then sends you a list of what it changed. Broken links frustrate visitors and waste the attention search engines give your site.

For internal links the assistant can often fix the address or add a redirect from the old URL to the new one. For external links the choices are to update to a working address, remove the link, or point to an archived copy.

Make sure you ask for a list, since the changes happen across many pages.

A link check is worth repeating every few months, because pages and other websites change without telling you. Treat the first run as a clean-up and later runs as routine care. Keep the list your assistant sends, since it doubles as a record of exactly which addresses were touched.

Before you run it

  • Take a backup before the assistant edits content in bulk.
  • Decide your rules: when to redirect, when to remove, and when to ask you first.
  • Know that a link may be marked broken because the other site blocks automated visitors or was briefly down.
  • Ask the assistant to preview changes in a list before applying them, particularly for external links.

Redirects are lasting decisions, so check which kind it plans to use. A 301 is for a permanent move.

What to check afterwards

  • The list shows each link, the page it was on and what was done.
  • You can click through a sample of the fixed links and reach a real page.
  • Redirects go to the right destination, not just the home page.
  • No links were removed that you wanted to keep.
  • A second scan shows fewer problems.

Ways to adapt it

  • Reduce risk: Do not edit anything; give me a CSV of broken links and a suggested fix for each.
  • Start narrow: Only scan the blog posts from the last two years.
  • Set policy: Redirect internal links, but ask me before changing external ones.

If it goes wrong

  • A working link was flagged. Re-test it manually, and exclude sites that block scanners.
  • A redirect loops. Remove the conflicting rule and test the address in a private window.
  • A change was wrong. Restore the post from its revision history or from your backup.

For the technical side, read the guide to 301 redirects and refreshing old content.

← Every prompt on WPMusk

SponsoredNibWP

Stop clicking. Start telling.

Ask your AI to build pages, fix speed and nail SEO, and NibWP does it on your WordPress site in minutes.

Try NibWP.com

Get the WPMusk Sunday brief

One email a week with our newest tutorials, honest tool reviews and resources you won’t find on the blog. No spam, unsubscribe in one click.

Newsletter (Sunday brief)