I have a problem, my project is running on nginx, so I cant do redirects via htaccess. Solution is that I need to use index.php using php to redirect http to https.
Example
http://example.com/shoes to https://example.com/shoes
Also, most of the examples on google suggest using htaccess, thats why I'm here.