cancel
Showing results for 
Search instead for 
Did you mean: 

Force HTTPS on certain URLs and force HTTP for all others

Former Member
0 Kudos

Hi Experts,

We have a requirement of forcing few URL prefixes to HTTPS and rest all to be forced to HTTP. The former we could achieve easily using HTTP redirects, however to achieve the 2nd requirement we have configured the below parameter but this pushes even the HTTPS mandatory URL's also back to HTTP !!!!

icm/HTTP/redirect_X = PREFIX=/, FROM=*,FROMPROT=https, PROT=http, HOST=www.XXXX.com

Could someone please suggest how both the above requirements can be achieved ?

Thanks in Advance !!

Accepted Solutions (0)

Answers (1)

Answers (1)

isaias_freitas
Advisor
Advisor

Hello Srikanth,

I would say that your redirect parameter is working as expected.

That parameter makes all URLs accessed through HTTPS to be redirected to HTTP.

You need to use the PREFIX and FROM arguments to limit which URLs should be redirected.

However, I would like to comment that having mixed protocols (some URLs accessed through HTTP, others through HTTPS) might cause issues.

Why not perform the access to all URLs through HTTPS?

Best regards,

Isaías