I own multiple domain names under single main domain as addon domain .,
i also bought ssl for main domain .
to force all non ssl to ssl i use following .htaccess code
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^$ https://www.maindomain.com/$1 [R,L]
this works fine ., but the issue is if i enter addondomain.info it also redirects to https://www.maindomain.com/addondomain.info/ .
i want only main domain to do https redirection how to do it ???
Note : if i enter www.addondomain.info instead of simply addondomain.info it works fine
i also bought ssl for main domain .
to force all non ssl to ssl i use following .htaccess code
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^$ https://www.maindomain.com/$1 [R,L]
this works fine ., but the issue is if i enter addondomain.info it also redirects to https://www.maindomain.com/addondomain.info/ .
i want only main domain to do https redirection how to do it ???
Note : if i enter www.addondomain.info instead of simply addondomain.info it works fine