The company developed a project for the electronic mall. Now you need to register, log in, shopping cart, and pay for these pages to set HTTPS transmission, and other pages to HTTP transmission. How can I configure it? The company developed a project for the electronic mall. Now you need to register, log in, shopping cart, and pay for these pages to set HTTPS transmission, and other pages to HTTP transmission. How can I configure it?
Reply content:
The company developed a project for the electronic mall. Now you need to register, log in, shopping cart, and pay for these pages to set HTTPS transmission, and other pages to HTTP transmission. How can I configure it?
A single domain name does not solve this problem, because you put the siteexapmle.comDeployhttpsThe whole site ishttpsTransmitted,
You can select a transmission mode for a website.
-
General page http://example.com
-
Sign up https://account.example.com
-
Cart https://cart.example.com
-
Payment https://pay.example.com
Deploy two domain names Ah: http://a.com and https://ssl.a.com, related to the local cross-origin can be.
Agree with the answers of @ leandre and @ godruoyi. separate the domain names that require https protocol and use https protocol to request the relevant url.
However, this is inconvenient: generally, an https domain name page needs to access the http domain name content. in this way, cross-domain problems are involved, and cross-domain solutions are also available, yes, but it will be troublesome.
Therefore, we recommend that you use https for the whole site. Although the performance may be compromised, if the optimization is good, the https performance is acceptable.