Selectively Redirect to HTTPS

If you do not want the entire site to be https, let’s say you have an XML files that you want outside the https realm, you can just use mod_rewrite to selectively reroute your requests.

RewriteRule !^(nohttps.xml)$  https://ycsoftware.net/https_only/$1 [R,L]

Anything that is not nohttps.xml use https.