cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Need Help with Http to Https redirection

I am trying to redirect my site from Http  to  Https ( Already SSL installed). I  have Windows Plesk Hosting . I am going through the article https://in.godaddy.com/help/redirect-http-to-https-automatically-8828??v=1

which tells me to Change code in Web.config file.

As I go inside my web.config file ( screenshot attached) for the domain , I see that there are already Codes Exist(screenshot attached ).I am also putting the existing code in web.config file here :

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <rewrite>
      <rules>
            <rule name="WordPress: https://mysite.com" patternSyntax="Wildcard">
                <match url="*"/>
                    <conditions>
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
                    </conditions>
                <action type="Rewrite" url="index.php"/>
            </rule></rules>
    </rewrite>
  </system.webServer>
</configuration>

 

  I would really appreciate if someone can tell me what I need to do from here on . I am really confused as to delete the existing codes, Add the codes in the article along with the existing one or do something else

Shot1.jpgShot2.jpg

1 REPLY 1
Highlighted
estieg
Former Employee

Re: Need Help with Http to Https redirection

Hi @bittusinghmca

 

Thank you for your question - wanted to check in with you and see if there was any update to your issue, or if you may have additional details you can provide so we can help trouble shoot.  Looking forward to hearing from you, make it a great day!

 

Eric

If I answered your question, please mark it as the solution or give it a "Kudo"