All my urls were unsecured and was indexed by google like that.
Now I'm planning to secure all my pages with https
But when the old urls show up on google search they automatically resolve to the secure base url
for example : old url >> http://www.example.com/cameras as indexed and cached by google.
Now when you click on the url it goes to https://www.example.com instead of https://www.example.com/camera
How do I get the old http url to redirect to the https url without it going to the base url?