将 http 转换为 https [英] conversion http to https
本文介绍了将 http 转换为 https的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将我的网站从 HTTP 移动到 HTTPS ,
I want to move my site from HTTP TO HTTPS ,
我还想在用户输入时重定向我的网站
Also i want to redirect my site when user type
1.如果他们喜欢 happy.in 到 https://happylife.in
1.IF THEY TYPE LIKE happy.in To https://happylife.in
2.如果他们喜欢 http://happy.in 到
3.如果他们喜欢 www.happy.in 到 https://happylife.in
3.IF THEY TYPE LIKE www.happy.in To https://happylife.in
我必须做什么,
我还没有开始任何 SSL 工作,
YET AM NOT STARTED ANY WORK FOR SSL,
请指导我,
谢谢
推荐答案
1) 安装 SSL 证书
1) Install an SSL certificate
2) 将其放在根 Web 目录中的 .htaccess 文件中:
2) Put this in an .htaccess file in your root web directory:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.happylife.in/$1 [R,L]
这篇关于将 http 转换为 https的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文