• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Issue redirect http to https is not working

bugzlife

New Pleskian
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
 
Back
Top