conversion http to https

2019-06-03 05:52发布

mysite

I want to move my site from HTTP TO HTTPS ,

Also i want to redirect my site when user type

1.IF THEY TYPE LIKE happy.in To https://happylife.in

2.IF THEY TYPE LIKE http://happy.in To https://happylife.in

3.IF THEY TYPE LIKE www.happy.in To https://happylife.in

What things i have to ,

YET AM NOT STARTED ANY WORK FOR SSL,

Please guide me,

Thanks

1条回答
虎瘦雄心在
2楼-- · 2019-06-03 06:13

1) Install an SSL certificate

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]
查看更多
登录 后发表回答