I've tried so many things! I am getting a massive headache. Just in case someone tried to help, here is some specific information:
On my hosting account I have the following domains:
realbanknotes.com
mcatzone.com
digitalproteus.com
I also have the following subdomains:
blog.realbanknotes.com
micro.digitalproteus.com
Also, I have the following directory:
realbanknotes.com/forums/
Here is what I have been trying to do:
RewriteCond %{HTTP_HOST} ^(realbanknotes\.com)$ [NC]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
As I understand it, this rule should only work for the domain 'realbanknotes.com.'. It should not work for digitalproteus.com or mcatzone.com, but it does. Also, I would like to exclude the following from this rule:
all domains other than realbanknotes.com (in this case exclude digitalproteus.com and mcatzone.com)
subdomain: blog.realbanknotes.com
directory: realbanknotes.com/forums/
The second rule is this:
RewriteCond %{HTTP_HOST} ^(www\.realbanknotes\.com)$ [NC]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
As I understand it, this second rule should only work for the domain 'realbanknotes.com' as well. It should not work for digitalproteus.com or mcatzone.com, but it does. Also, I would like to exclude the following from this rule:
all domains other than realbanknotes.com (in this case exclude digitalproteus.com and mcatzone.com)
subdomain: blog.realbanknotes.com
directory: realbanknotes.com/forums/