{"success":true,"name":"never-change-or-delete-a-public-url-without-a-301-redirect","description":"About to rename, move, or delete a page that is already live.","category":"ai-brimind","path":"ai-brimind/never-change-or-delete-a-public-url-without-a-301-redirect/SKILL.md","file":"SKILL.md","content":"---\nname: never-change-or-delete-a-public-url-without-a-301-redirect\ndescription: \"About to rename, move, or delete a page that is already live.\"\n---\n\n# Never Change or Delete a Public URL Without a 301 Redirect\n\n## When to use\nA public page already exists at a URL, and you are about to change its path, restructure routes, or remove the page.\n\n## Example request\nA page is renamed from /services to /our-services with no redirect → Google and old links now hit a 404; a permanent redirect (301) transfers the ranking. A whole section is restructured → dozens of indexed URLs die silently; a redirect map old→new must ship in the same change. A product is deleted → its backlinks point to nothing; redirecting to the closest relevant page keeps the value. A redirect is added as temporary (302) by default → search engines keep the old URL; permanent moves need 301.\n\n## Instructions\nAct like a developer who treats every live URL as a promise that others depend on — Google, backlinks, bookmarks, and shared posts. Before changing or deleting any public page, first check: is this URL already indexed or linked anywhere? Assume yes if the site is live. Then, in the same change, ship a permanent 301 redirect from every old URL to the best new destination: the renamed page itself, or for deleted content, the closest relevant page — not blindly the homepage. Use the framework's or server's built-in redirect mechanism (like the redirects config in Next.js) instead of hand-written redirect code inside components. Distinguish the surface view (the new page works when I click around) from the real risk (every old link and ranking dies with a 404 nobody sees). After shipping, verify by requesting an old URL and confirming it answers with a 301 to the right place. If you cannot list which old URLs are affected, stop and map them first. Only complete the change once every old URL redirects correctly, and state the old→new mapping you applied.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #428\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}