Notifications
Clear all
Topic starter
12/03/2022 7:23 pm
How to change the domain from HTTP to HTTPS
This topic was modified 3 years ago by geekfrisk
Topic starter
12/03/2022 7:24 pm
To navigate the domain from HTTP to HTTPS, we need to add the rule in the web config file
<system.webServer> <rewrite> <rules> <rule name="HTTPS force" enabled="true" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="^OFF$" /> </conditions> <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" /> </rule> </rules> <rewriteMaps> <rewriteMap name="MapProtocol"> <add key="on" value="https" /> <add key="off" value="http" /> </rewriteMap> </rewriteMaps> </rewrite> </system.webServer>
Example: djobbuzz using the same configuration for HTTP to HTTPS