-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Thomas Sent: Sat, September 15, 2001 3:55 AM To: [EMAIL PROTECTED] Subject: Re: [cobalt-developers] Apache rewrite question Just resolved this issue, I will share it with the list: The following gets placed in your .htaccess file in the directory you want to force https (this also forces all requests blow the directory) RewriteEngine on RewriteBase /home/sites/site1/web/test RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*)?$ https://%{SERVER_NAME}/test/$1 [L,R] This forces all http requests to https for www.foo.bar/test Of course you can use the other ways specified in the last few weeks on how to do this in other ways, but they were being placed in the httpd.conf file and not .htaccess -Thomas ----- Original Message ----- From: "Thomas" <[EMAIL PROTECTED] To: <[EMAIL PROTECTED] Sent: Friday, September 14, 2001 10:20 PM Subject: [cobalt-developers] Apache rewrite question I have been using the rewrite directives (listed below) in my httpd.conf file with great success. BUT, I need to be able to place it into a .htaccess file. As it sits it does not work in .htaccess The idea being that I users can drop this into an .htaccess file, and I dont have to muck with the httpd.conf file or worse have the rule disappear later on. Any ideas? RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/test/(.*)?$ https://%{SERVER_NAME}/test/$1 [L,R] Thanks in advance. -Thomas _______________________________________________ cobalt-developers mailing list [EMAIL PROTECTED] http://list.cobalt.com/mailman/listinfo/cobalt-developers _______________________________________________ cobalt-developers mailing list [EMAIL PROTECTED] http://list.cobalt.com/mailman/listinfo/cobalt-developers -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Thu, September 20, 2001 8:05 PM To: [EMAIL PROTECTED] Subject: [cobalt-developers] adding SSL to specific directories To clarify my question - I can bring up my site by entering https://... But, is there a way to force that, so anyone going to the page is automatically switched to https. 2nd problem: when I submit data on my form, which works if I just use http: I get: CGI-Mailer Response Error. An error has occurred while attempting to submit your form The Error is: Couldn't get format file: https://www.mysite.com/enter_data.data The .data file is part of the cgi-mailer - it is a file that contains the fields the mail form is sending. Hope this makes sense to someone. JALE _______________________________________________ cobalt-developers mailing list [EMAIL PROTECTED] http://list.cobalt.com/mailman/listinfo/cobalt-developers _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ cobalt-developers mailing list [EMAIL PROTECTED] http://list.cobalt.com/mailman/listinfo/cobalt-developers
