lesser-equity

Magazine
Go Back   Computer Juice > Computer Software > Web Design, Hosting & SEO


Register


Reply
 
Thread Tools
  #1  
Old 20th Nov 2007, 17:03
New Member Group
 
hello,

recently I bought a domain name and installed SSL from Godaddy.com. Now the problem is that I am able to access the my site using http:// as well as https://.

Could you please suggest me how to stop this? I want people to use only https and when some one without knowing types http:// they should be redirected to https.

I asked their help support, well they said one way is to redirect but how do i redirect? I mean, in the server there is no separate folders for http and https, so how will I do that!!!

I would appreciate any one who is able to help me.

thanks
sd
  #2  
Old 27th Nov 2007, 14:20
Donor Group
 
Stick this in a file called .htaccess in the ROOT of your web server:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
__________________
I think I am a signature, therefore I exist!
I believe a higher being has me as a signature...

Reply

Register
Thread Tools




Arabic Bulgarian Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Finnish French German Greek Hebrew Hungarian Italian Japanese Korean Latvian Lithuanian Norwegian Polish Portuguese Romanian Russian Serbian Slovak Spanish Swedish Thai Turkish Ukrainian

Copyright ©2006 - 2009 Computer Juice.

Powered by vBulletin® Copyright ©2000 - 2009 Jelsoft Enterprises Ltd. SEO by vBSEO ©2009, Crawlability, Inc.