I have a website where I currently force example.com visits to www.example.com, and it has an SSL certificate, so I also force HTTP to HTTPS. My SSL certificate covers example.com and www.example.com.I want to set up a static domain to serve images for my website, and I don't want to go through the trouble of updating my SSL or paying for a wildcard SSL... so my idea was to somehow route requests for static content to the example.com, while everything else gets forced to www.example.com.So, I have in my .htaccess, the following snippet that forces the HTTPS:  RewriteCond %{HTTPS} off  RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]and the following snippet that forces the www.  RewriteCond %{HTTP_HOST} ^mydomain\..+$ [NC]  RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]How, exactly, should I change this so that if the request is for an image, it goes to https://example.com/..., and if it's not, then it forces the www and goes to https://www.example.com/...?
Need .htaccess mod_rewrite for serving static content from subdomain, but forcing www otherwise
htaccess;subdomain;mod rewrite;cdn