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

Re: [cobalt-users] SSL ?



At 06:32 PM 4/16/2003 -0400, you wrote:
JG>   The problem is that i can get to the form from both http and https.

JG>   How do I prevent the http:// url from working?

I just implemented this fix today. Stick this in an .htaccess file:

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

Brian


--
Brian M. Rahill
President
RainStorm, Inc.
http://www.rainstormconsulting.com
"Designing Strategies for Internet Success."
brian@xxxxxxxxxxxxxxxx
Phone: 207-866-3908
Fax: 207-866-0297