由网友(我不是限量版而是绝版i)分享简介:我最希望我的网站来为http://但结帐单页以https://开头I want most of my site to be http:// but for a single checkout page to be https:// 如何检查和用户切换到https://所以没有机会,他们可以使用它以http://...
我最希望我的网站来为http://但结帐单页以https://开头
I want most of my site to be http:// but for a single checkout page to be https://
如何检查和用户切换到https://所以没有机会,他们可以使用它以http://
How can I check and switch the user to https:// so there's no chance they can use it with http://?
推荐答案
您可以做到这一点在这种方式测试,对我来说工作得很好
You can do it in this way tested and works fine for me
将此code在的.htaccess
文件
RewriteEngine On
RewriteCond %{HTTPS} !^on$
RewriteRule ^checkout ? https://myproject.localhost/my_checkout_url [R,L]
希望它工作正常,也
Hope it works fine for you also
相关推荐
最新文章