In this tutorial I will show you how to redirect http to https in Godaddy Plesk/Windows.
If you added SSL secure certificated to your website. You need to redirect the visitors from http version to the secured version (HTTPS) to ensure their information is secured.
Many of them getting struggled to redirect http to https in godaddy windows cpanel. So this tutorial may help.
Redirect http to https cpanel/windows hosting
If you are a windows based user you can handle the redirection using web.config file.
In web.config under the system.webserver tag.
COPY and PASTE the Following code:
<system.webServer>
<rewrite>
<rules>
<rule name="HTTPto HTTPS redirect" stopProcessing="true">
<match url="(.*)"/>
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true"/>
</conditions>
<action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}"/>
</rule>
</rules>
</rewrite>
</system.webServer>
How to get free trusted ssl certificate for Godaddy domains?
Post your comments / questions
Recent Article
- ImportError: cannot import name 'url' from 'django.conf.urls' - Django Error
- How to Enable Virtualization in BIOS Security Settings in Intel Processors For Android Studio?
- Dependency 'androidx.activity:activity:1.8.0' requires libraries and applications that depend on it.
- AttributeError: 'NoneType' object has no attribute 'get_text' - Python
- ModuleNotFoundError: No module named 'openpyxl' - Python
- How to get thumbnail from vimeo video URL in Python?
- Remove all special characters, punctuation except spaces from string - Python
- OSError: cannot write mode RGBA as JPEG- Python
Related Article