How to fix a 404 error after changing a URL slug

A 404 error means a server could not find the page requested at a particular web address. If it appears after you change a URL slug, the page may still exist, but visitors and search engines could be following its old address.

The usual fix is to point the old URL to the new one with a 301 redirect. You should also check for broken links, confirm your WordPress settings and make sure your 404 page helps visitors find their way around. The steps below explain what to check and how to make changes safely.

Why changing a slug can cause a 404

A slug is the part of a URL that identifies a particular page or post. For example, if the address is example.co.uk/guides/old-title, the slug may be old-title.

Changing the slug changes the page’s address. The new URL may work, while the old one returns a 404. This can happen when:

  • Someone clicks an old bookmark or a link on another website.
  • Your own menu, article or footer still points to the previous URL.
  • A search engine has not yet updated its listing.
  • The content management system has not refreshed its permalink rules.
  • The page was moved or deleted as well as renamed.

A 404 is not always a sign that a page is permanently gone. It is the response for a URL that cannot currently be found. First check whether the intended page is available at its new address.

How to fix a 404 after changing a URL slug

1. Check the new URL

Open the new address in a private or incognito browser window. Check that the page loads, the URL is spelled correctly and it shows the expected content. If it does not load, the problem may be with the page itself rather than a missing redirect.

Also check whether the slug contains unexpected characters, extra words or a spelling error. A small difference in the address can lead to a 404.

2. Add a 301 redirect from the old URL

A 301 redirect tells browsers and search engines that a page has moved permanently. When someone visits the old address, they are sent to the new one. This is generally the appropriate redirect for a permanent slug change.

Set up a redirect from the exact old URL to the matching new page. Avoid sending every old URL to the homepage: visitors may not find what they expected, and the redirect does not explain where the content went.

Old URL New URL Redirect destination /guides/old-title /guides/new-title /guides/new-title

You can create a redirect through your website host, server configuration or a redirect plugin. The exact method depends on your platform and hosting setup. If you use a plugin, check its site usage terms documentation and test the redirect after saving it. Do not create a redirect loop, where the old and new addresses send visitors back and forth.

3. Refresh WordPress permalink settings

If your site uses WordPress, a wordpress permalink change can sometimes leave the site’s rewrite rules out of date. A quick way to refresh them is to open the WordPress dashboard and go to Settings > Permalinks. Review the current setting, then select Save Changes without making an unnecessary change.

Test the new page and the old address again. This step may help when WordPress is not recognising a valid URL, but it does not replace a 301 redirect if visitors still need to reach the page through its former address.

4. Fix broken links on your site

A redirect helps people who use the old URL, but internal links should also point directly to the new one. Search your navigation menus, related-content sections, images, buttons and older articles for links to the previous slug. Update those links to fix broken links and reduce unnecessary redirect steps.

If you use a link checker or site audit tool, review the results before making bulk changes. Tools can flag links that are intentionally unavailable, and automated replacements can change the wrong address if the old slug appears in more than one context.

5. Check the 404 page and navigation

Some visitors will still land on a 404 page: they may have typed the address incorrectly, followed a link you have not found or used an outdated bookmark. A helpful 404 page should make it clear that the requested page was not found and offer practical ways to continue.

  • Include a clear link to the homepage.
  • Provide navigation to important sections of the site.
  • Offer a site search if one is available.
  • Link to relevant, current content where appropriate.
  • Keep the wording calm and avoid implying that the visitor caused the problem.

A well-designed 404 page does not replace a redirect. It is a fallback for URLs that genuinely cannot be matched to a current page.

How to test the fix

After updating the redirect and internal links, test the old and new addresses separately. The old URL should take visitors to the intended page, and the new URL should load normally without redirecting somewhere unexpected.

  • Open the old URL in a private browser window.
  • Confirm it reaches the correct new page.
  • Check that the new page’s address is shown in the browser.
  • Test the page on a mobile device as well as a computer.
  • Check important site links and navigation menus.
  • Review your site’s 404 reports or server logs later for visits to the old address.

If the redirect does not work, check for typos, conflicting redirect rules, caching or plugin conflicts. Clear relevant caches only after confirming which caching systems your site uses. If the issue involves server configuration or a high-traffic website, your hosting provider or a suitably qualified web professional may be able to identify the cause.

Common mistakes to avoid

  • Deleting the old page before recording its URL: Keep a note of the old address so you can create the correct redirect.
  • Redirecting unrelated pages to the homepage: Send visitors to the closest relevant replacement, or let the 404 page explain that the content is unavailable.
  • Changing the slug repeatedly: Each change can create another old URL to account for. Settle on a clear, stable address where possible.
  • Leaving internal links unchanged: Redirects help, but direct links to the current URL are easier for visitors and simpler to maintain.
  • Assuming a redirect has worked without testing: Check both the old and new URL in a browser.

Information-only notice

This article is published by Help & Advice for general information only. It is not legal, financial, technical or other professional advice, and reading it does not create a professional relationship. Website platforms, hosting arrangements and individual circumstances vary, so the steps described may not suit every site.

To the extent permitted by law, Help & Advice excludes liability for loss or damage arising from reliance on this information or from changes made to a website using these steps. This wording does not exclude or limit any liability that cannot lawfully be excluded or limited. No particular search, traffic or business outcome is guaranteed.

Where this site includes affiliate links, it may earn a commission if a reader makes a qualifying purchase. Help & Advice participates in the Amazon Services LLC Associates Program, an affiliate advertising programme designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com. References to Amazon Associates tools or services do not mean Amazon endorses this article. Any product or service information should be checked with the relevant provider.

What to do next

Make a record of the old and new URLs, confirm the new page works, then set up and test a 301 redirect. Update your internal links and check that your 404 page offers useful navigation. Keep an eye on site reports for remaining 404s and review any changes before applying them across multiple pages.

If you are assessing a financial product or service mentioned elsewhere on a website, do your own research and check information directly with the provider. The FCA is the regulator for many financial services in the UK; its register and consumer information can help you check relevant firms and understand the scope of its regulation. A firm’s status or a website’s use of a link does not, by itself, establish that a product is suitable for you.

Public Last updated: 2026-11-25 06:22:59 PM