Skip to Content

Force HTTPS on certain URLs and force HTTP for all others

Jun 23, 2017 at 07:07 AM


avatar image
Former Member

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,

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

Thanks in Advance !!

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Isaias Freitas
Jul 13, 2017 at 12:33 PM

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,


10 |10000 characters needed characters left characters exceeded