When redirecting to another domain, to which domain should I apply HSTS?

I’m using Cloudflare to 1:1 redirect olddomain.com to newdomain.com

http://olddomain.com > https://newdomain.com
https://olddomain.com > https://newdomain.com
http://www.olddomain.com > https://newdomain.com

On which domain should I apply HSTS?

Apply to both. If you use a 301 redirect most bots & search engines will stop using the old domain eventually and you should also be updating your own internal links to use the new domain.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.