This question has already been answered:

tell me how to make a redirect: Given: http: // site http://www.site

Need to get https: // site

I am currently redirecting to http://www.site at https://www.site, but I need to go straight to https: // site

Reported as a duplicate by members nörbörnën , Suvitruf , cheops , 0xdb , MSDN.WhiteKnight May 16 '18 at 11:40 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

1 answer 1

I figured out, the fact was that from the beginning it was necessary to write the redirection rules from www to without www and then redirect to https: //.

  • Your answer would be more useful if you added the appropriate instructions .htaccess - vp_arth