cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

redirect only 1 specific url (HTTPS --> HTTP)

Former Member
0 Likes
1,154

Hi Experts,

I am facing some issues as below:

HOST = host.com

ALIAS = alias.com

We have just activated and redirect all the requests to HTTPS, normally user connects via alias.com to access portal. However, now we have been requested to exclude only 1 of the request and remain it in http which is http://host.com:port/irj/portal. How can we achieve this?

Existing parameters:

icm/HTTP/redirect_0 = PREFIX=/, FROM=*, FROMPROT=HTTP, PROT=HTTPS, HOST=alias.com

icm/HTTP/redirect_1 = PREFIX=/, FROMPROT=HTTPS, FOR=alias.com, TO=/irj/portal

I have add this but it doesn't work:

icm/HTTP/redirect_2 = PREFIX=/irj/portal, FROMPROT=HTTPS, PROT=HTTP, HOST=host.com, PORT=port

Can anyone please help?

Thanks in advance.

Best Regards,

Nancy

Accepted Solutions (0)

Answers (3)

Answers (3)

patelyogesh
Active Contributor
0 Likes

Hello Nancy,

Yes, please change as I have it mentioned

Thank you

Yogesh

patelyogesh
Active Contributor
0 Likes

Hello Nancy Tan

All HTTP requests are redirected to HTTPS

icm/HTTP/redirect_0 = PREFIX=/, FROM=*, FROMPROT=http, PROT=https, HOST=px155.sap.com

Only requests with a specific URL are redirected to HTTPS

icm/HTTP/redirect_0 = PREFIX=/sap/bc/bex, FROMPROT=http, PROT=https, HOST=px155.sap.com

This is the example of redirect URL

Can you please check there is a spaces between parameters as shown above?

Ref: https://help.sap.com/saphelp_em92/helpdata/en/48/3d993fb08c72d1e10000000a42189c/content.htm?no_cache...

Thank you

Yogesh

Former Member
0 Likes

Hello yogesh.patel3,

I have already set this:

icm/HTTP/redirect_2 = PREFIX=/irj/portal, FROMPROT=HTTPS, PROT=HTTP, HOST=host.com, PORT=port

But it didn't work, all the links were down. The only difference I noticed is "PORT=port". Could this be the problem?

Thanks in advance.

Best Regards,

Nancy

Former Member
0 Likes

Can anyone please help? Thanks.