How to achieve automatic transfer from http to https
Posted: Sun Mar 18, 2018 12:06 am
Hello, everyone. Very lucky to be here, I would like to ask a question.
I want to install an SSL certificate on my website. Hopefully, after the installation, every web page in the website can be browsed in this way: If I visit http: // URl, it will automatically jump to https: // URl.
I do not know which company's SSL is better. If you can help recommend one, I will be very grateful.
Another question:
In the server's root directory of my website, I have stored a file.htaccess.
content:
-----------------------------------------------
RewriteEngine On
RewriteCond% {SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.weldedmeshfence.com/$1 [R,L]
-------------------------------------------------- ------------------------------------------------
I found it won't work. Can anyone here help me correct it.
My website is http://www.weldedmeshfence.com.
Thank you very much.
I want to install an SSL certificate on my website. Hopefully, after the installation, every web page in the website can be browsed in this way: If I visit http: // URl, it will automatically jump to https: // URl.
I do not know which company's SSL is better. If you can help recommend one, I will be very grateful.
Another question:
In the server's root directory of my website, I have stored a file.htaccess.
content:
-----------------------------------------------
RewriteEngine On
RewriteCond% {SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.weldedmeshfence.com/$1 [R,L]
-------------------------------------------------- ------------------------------------------------
I found it won't work. Can anyone here help me correct it.
My website is http://www.weldedmeshfence.com.
Thank you very much.