How to turn on https redirect on whole website in litium 7?

How do one turn of redirect from http to https in litium 7.3?

Litium version: 7.3

You set the https requirement by editing the domain name and either setting or removing a value for HSTS.

There’s some information at the bottom of this page:
https://docs.litium.com/documentation/litium-accelerators/install-litium-accelerator

1 Like

So if i wan’t to redirect to https without HSTS i need to create a redirect in the iis?

Why do you not want to use HSTS?

If you not turn on HSTS Litium itself may genereate http-links instead of https-links.

No reason in production but in test we might not have a valid certificate/selfsigned but still want to have same behaviour as i production.or in production on preflight site before golive.

In test/preflight, if you can make an IIS rule to make the redirect to https, then you need to have a certificate for the site. Why not use HSTS directly in this case instead? If you set the HSTS to 5, then if you remove the https-certificate you need to wait 5 seconds before you can go to the http-version.

I most cases we just want to verify the behaviour of the site when using https and we then often use a selfsigned certificate. Most customers are not that interested in paying for a certificate for the test enviroment and to my knowledge you need a valid certificate for HSTS to work. But i dont see this an big issue i just wanted to know if litium could handled https redirects like in previous versions without forcing HSTS.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.