Hello All,

I am working on a project where I have to redirect all the http requests to
https protocol. I have configured the following rewrite rules and it is
working fine.

RewriteEngine On
RewriteCond  %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://<dns name>$1 [L,R]


then http://<dns name> is redirecting to https://<dns name>
&     http://<localhost name> is redirecting to htps://<dns name>

However, https://<localhost name> is not being redirected to https://<dnsname>,
It is just being https://localhost

Since I have a ssl installed with the common name (CN) as the dns name.

I need the https://local host name to be redirected to https://dns name.

Kindly suggest me what needs to be done.

Thanks in advance.

Reply via email to