i have a domain which which is like www.mydomain.com
and i want to redirect all non www request requests to www except for https requests.
i am using this one, which is redirecting all requests to www
RewriteCond %{HTTP_HOST} !^www\.mydomain\.com
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
what i want to do is, preventing redirects of requests like https://sslsites.com/mydomain.com