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