Forum Discussion
davidq_20688
Jun 06, 2011Nimbostratus
HTTP Profile for re-direct
Hi All, The company I work for has requested we set up a virtual server, which will effectively redirect all incoming HTTP requests. We have set up a http profile to do this jo...
Josh_Hill_17083
Jun 09, 2011Nimbostratus
You are doing it right I think, but you may need a redirect irule to redirect based on the uri entered if you want to redirect to a different hostname, otherwise the LTM will simply use the same hostname and append, as you have discovered.
So if you are using fallback.html in the profile, add an irule like:
when HTTP_REQUEST {
if {([HTTP::uri] eq "fallback.html") } {
HTTP::redirect "http://www.fallbackhost.com/fallback.html"
}
}
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