Forum Discussion
Karthik_Krishn1
Cirrostratus
Jan 18, 2017Use Policy to do HTTP-HTTPS redirection
Hello,
Is it possible to use LTM traffic policies to do http-https redirection. Redirection should be based on requested URL.
For e.g if the requested URL contains "sitex" it should be redi...
JG
Cumulonimbus
Jan 19, 2017That thread provides you with specific steps to create a traffic policy for an HTTP redirect you could model yours on. You will need two rules for your situations in Step 3. For rule 1, you need to define as follows:
For "Conditions":
Operarand: http-host
Event: request*
Condition: equals
Values: siteA.domain.com
For "Actions":
Target: http-reply
Event: request*
Action: redirect
Parameters:
Name: location*
Value: https://siteA.domain.com/irj/portal
Create another rule for your 2nd situation likewise.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects