• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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