Forum Discussion
f5jr_113308
Nimbostratus
Jun 22, 2011Help iRule Redirection to the same VIP
Hi All, I have an URL abc.xxx.com that i wanted to redirect to abc.xxx.com/site/ when the user type the URL. I tried with the following URL. it just adds /infosell// many times and doesn't w...
Colin_Walker_12
Jun 23, 2011Historic F5 Account
I think what you're looking for is something like:
when HTTP_REQUEST {
if { ([HTTP::host] eq "www.joe.com") && !([HTTP::uri] starts_with "/infosell") } {
HTTP::redirect "https://[HTTP::host]/infosell"
}
}
That would redirect any request to joe.com that isn't going to joe.com/infosell to that directory. If you need something else, let me know.
Colin
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