hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Wats the most easy way to Redirect Your Visitor from HTTP to HTTPs
Reply

Forum Jump

Wats the most easy way to Redirect Your Visitor from HTTP to HTTPs

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-10-2010, 01:33 PM
caisc caisc is offline
Aspiring Evangelist
 
Join Date: Feb 2010
Location: SSH Terminal
Posts: 392

Wats the most easy way to Redirect Your Visitor from HTTP to HTTPs


Hi,

I want to know the most easy way to Redirect Your Visitor from HTTP to HTTPs.

Recently i installed a SSL cert on my domain name abc.com
and it works fine at - https://abc.com/

but if some one opens up http://abc.com/ OR http://www.abc.com/ i want to redirect him to https://abc.com/

How to do that

Thanks



Sponsored Links
  #2  
Old 02-10-2010, 01:42 PM
madaboutlinux madaboutlinux is offline
Web Hosting Master
 
Join Date: Jul 2009
Posts: 1,543
Add the following in the accounts .htaccess file

RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule ^(.*)$ https://mydomain.com/$1 [R,L]

__________________
| LinuxHostingSupport.net
| Server Setup | Security | Optimization | Troubleshooting | Server Migration
| Monthly and Task basis services.
| MSN : madaboutlinux[at]hotmail.com | Skype : madaboutlinux

  #3  
Old 02-10-2010, 01:59 PM
caisc caisc is offline
Aspiring Evangelist
 
Join Date: Feb 2010
Location: SSH Terminal
Posts: 392
Quote:
Originally Posted by madaboutlinux View Post
Add the following in the accounts .htaccess file

RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule ^(.*)$ https://mydomain.com/$1 [R,L]

Dear madaboutlinux,

Many thanks it worked perfectly as i needed.
thanks for ur gr8 support.

Regards
CAISC

Sponsored Links
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to force redirect https to http grabmail Programming Discussion 6 12-13-2006 02:09 PM
Redirect from https >> http MarkerMart Programming Discussion 6 07-22-2006 04:16 AM
redirect from http to https protocol DarthClark Hosting Security and Technology 24 07-14-2006 09:08 PM
.htaccess redirect : http to https jon31 Programming Discussion 7 01-26-2006 11:27 PM
Redirect http to https l0ck_up Hosting Security and Technology 8 11-09-2004 12:41 AM

Related posts from TheWhir.com
Title Type Date Posted
Mistakes To Avoid When Launching A New Website Design Blog 2014-01-10 10:53:50
IDrive Launches Cloud-based Facebook Backup Web Hosting News 2013-11-25 13:29:42
Cloud Experts Answer Windows Azure Questions Aboard Super-Sonic Jet Blog 2013-10-10 14:51:32
Savings for Swashbucklers: Web Hosting Deals for Talk Like a Pirate Day Blog 2013-09-19 13:19:24
How Website Design Affects Conversion Rates Blog 2012-09-28 13:52:36


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?