Forum Discussion
Harry_175563
Nimbostratus
Dec 10, 2014Irule for url redirection
Hi,
Can any one help me with a http url redirection :
example :
when a user types "abc.mydomain.com " he should be redirected to the URL "
thanks
Michael_Jenkins
Cirrostratus
Dec 11, 2014Tried to update my original response, but it didn't save right, so here's a copy of it again... nitass' response is what I intended. (So I'll paste it back in)
You could also use an iRule to accomplish this, though it's less efficient since this is a pretty basic requirement, and the built in functionality would work.
the iRule would look something like this:
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals "abc.mydomain.com" && [HTTP::uri] equals "/"} {
HTTP::redirect "http://abc.mydomain.com:8080/update/manifest/Login.jsp"
return
You could also user HTTP::respond if you wanted more control over the response
HTTP::respond 301 Location "http://abc.mydomain.com:8080/update/manifest/Login.jsp"
}
}
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