The category has been removed from the menu, but its old address still opens. First, determine what happened to the category itself: it moved, was merged with another category, is temporarily empty, or no longer exists. This determines how the old URL should respond.
Redirecting every deleted section to the homepage does not help visitors find the right page. Someone looking for wall shelves should reach a suitable category or see a clear message that the old category is no longer available.
Choose the response based on the page’s purpose
| What happened | What to do with the old address |
|---|---|
| The category was renamed, and the assortment remains | Permanently redirect to the new URL |
| Two categories were merged into a suitable one | Redirect to the active combined section |
| Products are temporarily out of stock, but the section is still useful | Keep the page and show its status clearly, along with relevant information |
| The category was deleted, with no equivalent replacement | Return 404 or 410 with a useful error page |
The new page should match the intent of the old one. A “Furniture” section with hundreds of different products is not automatically a suitable replacement for the deleted “Wall Shelves” category. Check the assortment and purpose of the proposed replacement first.
Don’t delete a temporarily empty category just because it has no products today. But don’t keep an empty placeholder returning 200 solely to preserve the old URL. Make this decision together with someone who knows the catalog plans.
Make a short map of old and new addresses
For moved categories, record the old URL and its exact replacement. For deleted categories with no replacement, specify the expected 404 or 410 separately. This table will let the developer handle different cases without applying a blanket rule to the entire catalog.
For example, /shop/wall-shelves/ moved to /catalog/wall-shelves/, while /shop/old-collection/ was permanently deleted. In the first case, redirect to the new section. In the second, return the appropriate response indicating that the page is missing; you can link to the active catalog from within the error page.
Other addresses should behave as before. Include a neighboring active category in the task so you can check that the rule doesn’t affect it by mistake.
Check the response for the old URL
Ask the developer to preserve the headers for the entire chain and the body of the final page. Command for the terminal:
curl -sS -L --max-redirs 10 \
-D redirect-headers.txt -o final-page.html \
https://example.com/shop/wall-shelves/redirect-headers.txt shows the responses along the way, and final-page.html contains the final page. Check the permanent redirect, its destination, and the content of the suitable category. If there are multiple redirects, find out why the URL can’t point directly to the final destination.
For a deleted section with no replacement, request the old address without -L and check 404 or 410. A “Not found” message with a 200 response indicates different behavior. How search engines handle status codes is described in Google documentation.
Update links within the site
Check the menu, brand pages, articles, product pages, and visible breadcrumbs. For a moved category, new links should point directly to the active address. For a deleted one, remove any inappropriate link or replace it with a content-relevant recommendation.
Also update the sitemap and the BreadcrumbList generator: the old path may remain in the markup after the menu has changed. For more on these locations, see checking internal links after a rename.
Setting a canonical does not replace a redirect: it doesn’t take visitors to the new section. The purpose of this element is explained in the canonical guide.
Check old entry points and neighboring pages
Open the old saved link and the site’s active links. For a moved category, visitors should see the relevant assortment; for a deleted one, they should see a clear error page with the HTTP status preserved. Repeat the check for a neighboring category and the language versions in use.
Run an audit of the affected pages and save the final URL map. You can’t fix old external links by changing your own database, so the response for the old URL must be accounted for. Search engines will update their information after processing the new responses; don’t promise an exact date for when the old page will disappear.