Forum Discussion
Redirect SAP HTTPS portal to correct url
Hello,
I am new to F5 and am working od setting up the F5 for SAP portal . We have the VIP's etc setup and working . We also have the HTTP redirect working .ie when a user types in http://portal.x.com they are redirected to https://portal.x.com/irj/portal . My question is how can i do the same thing when a user driectly connects to https://portal.x.com and i redirect the session to https://portal.x.com/irj/portal.
I am not sure on how to do this and any help would be sincerely appreciated.
Thanks,
Karthik
- F5Hovey_37123Historic F5 AccountHi Karthik,
- Karthik_Krishn1
Cirrostratus
Hi Craig ,
Thank you for your reply . I tried the rule generator but it did not work for me . Our HTTP to HTTPS redirect is working fine but the issue i am having is that when a client goes directly to the HTTPS link they do not get to the correct path .
This is what our HTTP-HTTPS redirect does..
User --- http://example_portal.company.com --- https://example_portal.company.com/irj/portal
This is what happens when they go directly to the HTTPs link..
User -- https://example_portal.company.com -- https://example_portal.company.com/index.html
This is what needs to happen when a client goes directly to the HTTPS link..
User -- https://example_portal.company.com -- https://example_portal.company.com/irj/portal
Thanks and I sincerely appreciate your help.
Karthik
- What_Lies_Bene1
Cirrostratus
Are you terminating the SSL/TLS on the F5? If you are this will be easy, please confirm. - Karthik_Krishn1
Cirrostratus
Hi Steve , - What_Lies_Bene1
Cirrostratus
OK, thanks. Sorry, one more question, are you running this all through a single VS or two, one for 80, one for 443? - Karthik_Krishn1
Cirrostratus
Hi Steve, - What_Lies_Bene1
Cirrostratus
OK, so this should work for both Virtual Servers;when HTTP_REQUEST { if { [HTTP::uri] equals "/" } { HTTP::redirect "https://[HTTP::host]/irj/portal" } }
- Karthik_Krishn1
Cirrostratus
so this rule should be applied to both VS - Karthik_Krishn1
Cirrostratus
Yes that worked . Thank you so much for your help . - What_Lies_Bene1
Cirrostratus
Brilliant. You're welcome.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com