Forum Discussion
VJ_96387
Nimbostratus
Mar 08, 2010URI Redirection
Hello all,
Need your help again!!!
I have a portal which has a multiple alias names and this is registered with external DNS servers. This portal can be accessed via inte...
L4L7_53191
Nimbostratus
Mar 08, 2010I may be missing a requirement here, but on the surface something as simple as this may work for you:
when HTTP_REQUEST {
if { [HTTP::host] ends_with ".com"} {
log local0. "redirecting to: [string map {.com .corp} [HTTP::host]][HTTP::uri]"
HTTP::redirect http://[string map {.com .corp} [HTTP::host]][HTTP::uri]
}
}
Give this a try and see if it meets your needs.
-Matt
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