Forum Discussion
Chris_123510
Nimbostratus
Jan 09, 2015URL Redirect Question
I have to do a redirect and append the uri to the URL that I am redirecting to. Below is what I am looking to do.
Clients will come into this URL:
a.bcde.com/10 Random Character Set
I wi...
Michael_Jenkins
Cirrostratus
Jan 09, 2015You could use an iRule like this to do the redirect. If it's just basic, then this should do (if you always want to redirect, you could even take out the
if statement). Do you need to do anychecking on the 10 digit URI string?
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "a.bcde.com" } {
HTTP::redirect "http://f.ghij.com/site/now[HTTP::uri]"
}
}
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