How to fix domain redirect chains: http -> https -> https://www

Highlighted
Regular Contributor

We have recently migrated domains (from ".co" to ".com") and, using Hubspot CMS as our website, moved old domain to redirected.

 

We have problems with redirect chains. Three examples we don't know how to fix:

 

http://example.co -> https://www.example.co -> https://www.example.com
http://www.example.co -> https://www.example.co -> https://www.example.com

https://example.co -> https://www.example.co -> https://www.example.com

We rely strongly on external inbound links which we can't change - they will always point to old domain, often with HTTP instead of HTTPS and without WWW.

 

These double redirects hurt our SEO. What can we do to fix them and start redirecting directly from 1 to 3 instead of 1 -> 2 -> 3?

Reply
0 Upvotes
3 Replies 3
Esteemed Contributor

Depending on your previous server setup (Linux vs. Windows), prior to the Hubspot migration, will determine where that redirect setting lies (htaccess or IIS config). But what you should remove is the redirect from HTTP to HTTPS on your old TLD. The redirect should simply catch example.co to example.com regardless of the protocol being secure or not.

 

 

Reply
0 Upvotes
Regular Contributor

Hi Ben,

 

Thanks for your reply. Maybe I wasn't clear - we didn't migrate from custom server to Hubspot CMS, but rather switched to new domain while being on Hubspot CMS.

 

We don't have much options when it comes to domains & URLs category in content settings - that's why we are unable to directly modify domain redirects.

Reply
0 Upvotes
Esteemed Contributor

Hi @Patryk - Sorry for the misunderstanding.  In your case I would reach out to Hubspot support and open a ticket with them.  In Hubspot hosting, I do not believe you have access to the actual code that is performing the redirect and this may be something they are not aware of and need to address.

Reply
0 Upvotes