1

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

Bharanikumar
  • 25,457
  • 50
  • 131
  • 201
  • Why do you want to use https? Will there be an authentication process that provides access to non-public information? If not, then https is unnecessary. – Marcelo Cantos Apr 01 '10 at 10:17
  • STILL SITE NOT LAUNCHED..TEMP I PUT THAT FLASH..I EXCUSE FOR THAT...THANKS – Bharanikumar Apr 01 '10 at 10:22
  • Most important you need a SSL certificate. – Felix Kling Apr 01 '10 at 10:28
  • 1) Get an SSL certificate and install it, 2) Setup a permanent redirect from http to https - you can most likely do it in the server setup. – driis Apr 01 '10 at 10:44
  • We have purchased and installed ... If i enter https.mysite.com then it show the site is secure.... Now what i want is ...When every user enter the url directly.... i want to redirect automatically to the https.mysite.com – Bharanikumar Apr 01 '10 at 10:58
  • HI ANY ONE GIVE SOME SUGGESTION FOR THIS QUESTION..... – Bharanikumar Apr 01 '10 at 11:42

1 Answers1

2

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]
John Conde
  • 217,595
  • 99
  • 455
  • 496