Forum Discussion
Vim_113268
Nimbostratus
Nov 28, 2009I need Help - Need to create Redirect
I need to Implement an iRule on the ABC VIP so that any attempt to hit
aaa.bbb.com/starss on this VIP will redirect back to / (ex. aaa.bbb.com/ )
I want this to happen for both Http and https requests.
please advise ASAP.
Thanks.
5 Replies
- Vim_113268
Nimbostratus
Below is the exact example:
Redirect eigther http or https for
one.test.com/xxx
to
https://one.test.com/ - The_Bhattman
Nimbostratus
Here is an examplewhen HTTP_REQUEST { if { ([HTTP::host] eq "one.test.com" ) and ([HTTP::uri] eq "/xxx" ) } { HTTP::redirect "https://one.test.com/" } }
If you are trying to redirect HTTPS to another HTTPS please keep inmind that it won't work unless the SSL is terminated at the F5.
I hope this helps.
Bhattman - Vim_113268
Nimbostratus
BATTMAN
i am currently using following:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/xxx" } {
HTTP::redirect "https://abc.xyz.com/"
}
}
will it work? - The_Bhattman
Nimbostratus
Yes that would work also.
Bhattman - Vim_113268
Nimbostratus
I am all set. Thank you.
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