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

WBOY
Release: 2016-08-23 09:17:47
Original
1818 people have browsed it

The company developed an e-mall project. Now it is required that registration, login, shopping cart, and payment pages be set to HTTPS transmission, and other pages to HTTP transmission. Please let me know how to configure it?

Reply content:

The company developed an e-mall project. It is now required that registration, login, shopping cart, and payment pages be set to HTTPS transmission, and other pages to HTTP transmission. Please let me know how to configure it?

A single domain name cannot solve this problem, because when you deploy the site exapmle.com as https, the entire site is httpstransmitted,

You can choose the corresponding transmission method for a certain site

  • General page http://example.com

  • Log in and register https://account.example.com

  • Shopping cart https://cart.example.com

  • Pay https://pay.example.com

Deploy two domain names: http://a.com and https://ssl.a.com. The relevant places can be cross-domain.

I agree with @leandre and @godruoyi's answers, separate the domain names that need to use the https protocol, and use the https protocol when requesting related URLs.
But this has an inconvenience: usually a page with an https protocol domain name needs to access the domain name content of the http protocol. This will involve cross-domain issues. There are also related cross-domain solutions, which can be done, but it will be more troublesome. .
So it is recommended to use https for the entire site. Although there will be performance losses, if the optimization is done well, the performance of https is completely acceptable.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template