View Single Post
Old 10-20-2023, 05:43 AM  
mopek1
Confirmed User
 
Industry Role:
Join Date: Jun 2004
Location: Canada
Posts: 3,060
Redirect Code Question - http to https Transition

Hello,

I was wondering if I could pick your brains. Most of my sites are https but I have a few that are over 15 years old that are still http. The main reason is that I have been afraid of not being able to transition properly.

Google sees https as a brand new site and there are some horror stories out there of people who claim to have done everything right while transitioning and who still lost a good chuck of their traffic permanently.

What I am concerned with specifically is what redirect code to use in my htaccess file.

Over the years I've accumulated thousands of external links that are http. I also have thousands of internal links that are http, which would be too time consuming to change manually.

How do I make sure that all of the external links, in all of their forms:

Website Domain Names, Online Stores & Hosting | Domain.com
Website Domain Names, Online Stores & Hosting | Domain.com
Website Domain Names, Online Stores & Hosting | Domain.com

... redirect to the new https://domain.com/

And same question for all of the internal links.

Ive played around with some 301 code I've found on substack and other coding forums with much smaller sites and it sometimes seems to work (although I don't know for sure) , and sometimes I get errors.

Any thoughts? Or do you recommend any good people, companies who know their stuff to help me out?

Thanks
mopek1 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote