cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP --> HTTPS redirect

former_member203029
Participant
0 Kudos

Hi Guys,

We are facing issue while trying to redirect from http to https.

Could you please provide us the settings or list of parameters that need to be added in dispatcher for the redirects to happen .

The requirement is urls should redirect to https for any pages where sensitive data is displayed or entered, Also need to link back to http when we leave those pages. When we click “login” for example, it should redirect to HTTPS through login, but if we hit one of the categories after that it should return to HTTP


Redirect is working fine when we access the application directly using server name and port. when we go through dispatcher we are facing the issue.

 

PS:

We tried to change the parameter [ icm/HTTP/redirect ] but found no luck, I want to know weather the object "FROM" in the parameter icm/HTTP/redirect is necessary to mention or can i eliminate it by just entering the objects "prefix" and "to" in the parameter.

and what is that i need to enter in the "PREFIX" (i.e. should I enter the whole url or what!!? Kindly let me know what i need to fill it with.

Thanks and Regards,

Kaushik G

Accepted Solutions (1)

Accepted Solutions (1)

isaias_freitas
Advisor
Advisor
0 Kudos

Hello,

The following parameter will redirect any request from HTTP to HTTPS:

icm/HTTP/redirect_0 = PREFIX=/, FROMPROT=HTTP, PROT=HTTPS, HOST=web_disp_server.domain.com


(notice it should be all in one line)

If you want to switch only for a specific request (e.g., login) you can add "FROM=...." to the parameter.

Then, you would have to create another redirect parameter to switch back to HTTP.

It could be tricky and could require a lot of effort to "fine tune" all your redirects if you really need to create the "switch back" scenarios.

I would recommend to force the switch to HTTPS and keep all traffic as HTTPS...

Regards,

Isaías

Former Member
0 Kudos

Hi Isaías,


not sure if it's correct to post here, I have an issue with HTTPS redirect.


My ABAP program calling a URL that redirects to different URL with status code 302 and asking to confirm "Agree" button for terms and condition. Once I click that button in the browser, its actually open the actual URL. Need help to achieve that from ABAP.

Thanks

Angshuman

isaias_freitas
Advisor
Advisor
0 Kudos

Hello Angshuman,

This thread is already closed and your question is somewhat different from the original question.

The original question was about a redirect made by an ICM or Web Dispatcher process.

If I understood your question correctly, you want to perform some redirects within your ABAP coding / programs.

Maybe the best SCN space to ask your question is .

Regards,

Isaías

Answers (0)