How to set the registration and login URL to https and other pages to http

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.