[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 
> >JG> 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
> 

Couldn't you just do a 

RedirectPermanent /form.html https://www.example.com/form.html

and put that in httpd.conf for that site.

-- 
C2003 Dan Kriwitsky

Please reply to the list only. Off list replies are not read.