I have SSL on my website but in the top URL bar still only says http://
not https://
.
I am using the Satchmo system with a Django Python stack for my website. Does anyone have some insight to this?
Whatever the web-server being used, you need to tell the client to go to your secure ( https
) site.
They are different protocols, http
and https
. If you want the client's browser to use the https
version of your website you will need to issue a redirect. eg:
GET http://stackoverflow.com HTTP/1.1
HTTP/1.1 302 Found
Location: https://stackoverflow.com
You'll have to find the mechanism in your web-server code to trigger a redirect.
Figured it out. in my httpd.conf file i added this:
RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteCond %{REQUEST_URI} ^/about-us
RewriteCond %{REQUEST_URI} ^/
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
where "about-us" was is the url of the page you want to display https
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.