Try our conversational search powered by Generative AI!

Is it possible to force HTTPS within the CMS?



We have HTTPS set up and working on our site. We force HTTPS on some pages by redirecting from HTTP to HTTPS in code.

Is there any way to configure EPiServer to force HTTPS in the CMS in a similar way, so that when the user goes to the EPiServer login page on HTTP it automatically switches over to HTTPS?


Dec 05, 2014 11:30

This is code, but only in web.config.

You can put this in the system.webserver inside the location /EPiServer and it will redirect it to https for that url and all below it:

                <clear />
                <rule name="Redirect to https" stopProcessing="true">
                    <match url="(.*)" />
                        <add input="{HTTPS}" pattern="off" ignoreCase="true" />
                    <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
Dec 05, 2014 12:17

That works great, thanks!

Dec 05, 2014 12:56
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.