Is it possible to enable redirects from http://www to https://?

Is it possible to enable redirects from http://www to https://? At the moment it works in a staggered way - when you go to http://www you get redirected to https://www and then to https://. I have enabled redirects in the rules (screenshot), but the page is redirected directly to https://…pl/*.

Hi,

You’re seeing 2 redirects because you probably have Always Use HTTPS enabled. With that feature on, there’s no way to avoid the double redirect. What you can do is disable AUH, remove your Page Rule, and create instead a Redirect Rule with the following logic (it assumes there’s no other subdomain besides www.):

When incoming requests match:

not SSL or (http.host eq "www.example.com")
Redirect
Type: Dynamic
URL: concat("https://example.com", http.request.uri.path)
Preserve Query String: Yes.
2 Likes

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