
May 3rd, 2012, 01:57 PM
|
|
Contributing User
|
|
Join Date: Sep 2003
Posts: 181
 
Time spent in forums: 5 Days 18 h 35 m 8 sec
Reputation Power: 10
|
|
|
mod_rewrite - Htaccess force https but ignore addons?
i've got https://www. being forced via:
Code:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.domain.com/$1 [R,L]
and that seems to force http://domain.com to https://www.domain.com (which is what i want as the ssl cert is www)
but i've got a couple of (cpanel) addon domains and the cert obviously doesn't work for them and flags up errors
what's the best way of ensuring that: domain.com and www.domain.com are turned to http://www.domain.com
BUT domain1.com and domain2.com are ignored?
thanks in advance
|