Hreflang set
One row per language/region. Use ISO language codes and a full URL. Every set should include a self-reference.
Redirect map
One line per redirect: old-path,new-path or full URLs.
Hreflang output
No hreflang set generated yet.
Redirect output
No redirect map generated yet.
Hreflang is a matching system
Every page should self-reference and point to valid alternates. It is not a translation switcher and it does not fix duplicate content by itself.
Redirect maps need a target
A redirect should land on the closest topical equivalent, not the homepage. This generator writes the map; it does not deploy it.
What a correct hreflang set needs
Every page should reference itself and every alternate. Return tags should be reciprocal: if en points to zh-CN, zh-CN should point back to en. Use the correct ISO language and optional region code. Do not use hreflang to fix duplicate content that should be consolidated.
Redirect mapping rules
- Map to the closest topical page, not the homepage.
- Avoid chains: old → new → final should be one hop.
- Keep redirects for URLs with external links, ideally indefinitely.
- Test status codes and canonical tags after deployment.
- Keep a CSV of every mapping for rollback.
Security and privacy
The generator does not crawl or deploy. Review generated Nginx rules before use; a bad rewrite can break a site.
Related work
Use the Robots & Sitemap tool for discovery, and the scorecard to check access.
FAQ
Does it crawl my site?
No. You paste the URLs and redirects; the tool formats and checks duplicates.
Is the Nginx output deployable?
Treat it as a draft. Test the exact paths, status codes and chains in staging before production.
Do I need a self-referencing hreflang?
Yes. Each page in the set should include itself, plus valid alternates.
Do I need return tags?
Yes. Alternates should be reciprocal; a one-way annotation is a common error.
Can the Nginx output be deployed directly?
It is a draft. Test paths, status codes and chains in staging first.