[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Redirect http to https



Please this in your .htaccess file in the root directory of your website.
The ONLY thing you must change is /home/sites/siteX/web (this must be
tailored to your product/site#)
Do not edit the {SERVER_PORT} or {SERVER_NAME}

#BEGIN FORCE HTTPS
RewriteEngine on
RewriteBase   /home/sites/siteX/web
RewriteCond   %{SERVER_PORT}  !^443$
RewriteRule   ^(.*)?$   https://%{SERVER_NAME}/$1 [L,R]
#END FORCE HTTPS

-Thomas Sanders
LogicX

----- Original Message -----
From: "AHA Lists" <lists@xxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Monday, December 03, 2001 8:05 AM
Subject: [cobalt-users] Redirect http to https


> How do set up any request for anything to http://www.mysite.com to be
> redirected to the secure site https://www.mysite.com
>
> No matter what file is requested it will be redirected to go and get it
> through ssl?
>
> Kody
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>
>