Redirecting http to https always add www

Hi,

I have a little problem here.

I have redirected http to https on one of my website, no problem with the redirection, it works fine, but everytime someone typed http://secure.domain.com which should be redirected to https://secure.digitalvisi.com, it add "www" in front of the url so it become https://www.secure.domain.com.

This addition makes pop up confirmation message everytime someone visit the website, asking to accept the certificate.

my rewrite rule is :

RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L]

Can anyone help me?

Thanks

 

 

 

 

Top