Forum Discussion
Mitch_Ryan_6222
Nimbostratus
May 27, 2008HTTP redirect
Hello,
I am trying to create a simple redirect such that our users can type abc.com and be redirected to: xyz.com:9091/path-to-database
I have tried borrowing iRule code from oth...
Leo_Katona_5507
Nimbostratus
May 27, 2008If I understood correctly, you don't actually want to do a redirect but instead replace the URI "/" in incoming requests with "/path-to-database" and then take the user to the Virtual Server's default pool (abc). If this is the case, try this:
when HTTP_REQUEST {
if {[HTTP::uri] equals {/}} {
HTTP::uri {/path-to-database}
}
}
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