Apache Mod_rewrite for a secure site and Flex gateway

Rewrite all non-secure URLs aside from flex gateways for ColdFusion to a secure https server.  Here’s a sample Apache configuration:
<VirtualHost *:80>
RewriteEngine On
#  Don’t inherit the mod_rewrite options - don’t mess up flex data.
#  Allow all for the document root, but then will redirect all
#  non-flex based data (flex2gateway, crossdomain.xml, etc) to
#  https server which will [...]