I want most of my site to be http:// but for a single checkout page to be https://
How can I check and switch the user to https:// so there's no chance they can use it with http://?
I want most of my site to be http:// but for a single checkout page to be https://
How can I check and switch the user to https:// so there's no chance they can use it with http://?
You can force SSL for specific URLs using .htaccess rules. In this example, if someone visits any of the register/payment directories, they will be redirected to the https:// URL.
You can change this according to your needs. Hope this helps.
You can do it in this way tested and works fine for me
Add this code in your
.htaccess
fileHope it works fine for you also