On 1/19/06, Ben Doom <[EMAIL PROTECTED]> wrote:
> Sorry, I'm not familiar enough with whatever regex engine Apache uses to
> give you good advice.

I ended up with the following config directives respectively for the
HTTP and HTTPS virtual hosts:

# HTTP vhost
RewriteEngine on
RewriteRule ^/secureDirectory/(.*)$
https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]

# HTTPS vhost
RewriteEngine on
RewriteRule !^/secureDirectory/(.*)$
http://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]

They seem to work fine, do you see any issue with them?

Thanks.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230042
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to