# How do JavaScript redirects affect SEO?

> For permanent URL changes, HTTP redirects are generally preferable because the redirect is communicated directly at the protocol level.

For example:

`HTTP/1.1 301 Moved Permanently
Location: https://example.com/new-page
`
JavaScript navigation adds another processing dependency.

During migrations, validate:

- old URL;

- HTTP status;

- final destination;

- redirect chain;

- canonical;

- internal links;

- sitemap references.

Google's site-move documentation provides specific guidance for redirects and URL migrations.

## Sources

- [Google Search Central — Site Move With URL Changes](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes)

## Related questions

- [How can JavaScript affect canonical tags?](https://www.theseocentral.com/technical-seo-faq/how-can-javascript-affect-canonical-tags.md)
- [How can JavaScript affect internal linking?](https://www.theseocentral.com/technical-seo-faq/how-can-javascript-affect-internal-linking.md)
- [How can you determine whether important content is available in rendered HTML?](https://www.theseocentral.com/technical-seo-faq/how-can-you-determine-whether-important-content-is-available-in-rendered-html.md)
- [How does Google process JavaScript-heavy websites?](https://www.theseocentral.com/technical-seo-faq/how-does-google-process-javascript-heavy-websites.md)
- [How would you audit a React, Next.js, Vue or Angular website for SEO?](https://www.theseocentral.com/technical-seo-faq/how-would-you-audit-a-react-next-js-vue-or-angular-website-for-seo.md)
- [How would you diagnose a JavaScript SEO problem?](https://www.theseocentral.com/technical-seo-faq/how-would-you-diagnose-a-javascript-seo-problem.md)
- [What happens between Google's initial HTML fetch and JavaScript rendering?](https://www.theseocentral.com/technical-seo-faq/what-happens-between-google-s-initial-html-fetch-and-javascript-rendering.md)
- [What happens when server-rendered HTML differs from client-rendered HTML?](https://www.theseocentral.com/technical-seo-faq/what-happens-when-server-rendered-html-differs-from-client-rendered-html.md)
- [When would you recommend SSR, CSR, SSG or hybrid rendering?](https://www.theseocentral.com/technical-seo-faq/when-would-you-recommend-ssr-csr-ssg-or-hybrid-rendering.md)

---

Answered by Abhinav Krishna (https://www.theseocentral.com/author/abhinav-krishna)
Source: https://www.theseocentral.com/technical-seo-faq/how-do-javascript-redirects-affect-seo
