hi
using plesk and has an SSL certificate in a domain
if i type : https:/domainname.com or https://www.domainname.com, it secured
but i want it as type www.domainname.com should be automatically redirect to https://domainname.com
enter as below
domainname.com
www.domainname.com
http://domainname.com
http://www.domainname.com
should be redirected to when loading the 1st page
https://domainname.com
my webconfig is not working :
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="NonWwwRedirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www.domainname.com\.com$" />
</conditions>
<action type="Redirect" url="https://domainname.com/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
thanks
bugzlife
using plesk and has an SSL certificate in a domain
if i type : https:/domainname.com or https://www.domainname.com, it secured
but i want it as type www.domainname.com should be automatically redirect to https://domainname.com
enter as below
domainname.com
www.domainname.com
http://domainname.com
http://www.domainname.com
should be redirected to when loading the 1st page
https://domainname.com
my webconfig is not working :
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="NonWwwRedirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www.domainname.com\.com$" />
</conditions>
<action type="Redirect" url="https://domainname.com/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
thanks
bugzlife