Forum Discussion
jorge_106498
Nimbostratus
Apr 30, 2010Redirect uri
I need to redirect http://192.168.10.5/ to http://192.168.10.5/psm/csr/dafult.asp with Irule. could you help me please.
1 Reply
- hoolio
Cirrostratus
Hi Jorge,
In 9.4+, you can use an HTTP class for this. Set the URI Paths to match only /, set the actions of Send To to: "redirect to" and the Redirect to Location to http://[HTTP::host]/psm/csr/default.asp.
The HTTP class would look like this in the bigip.conf:profile httpclass redirect_root_httpclass { defaults from httpclass pool none redirect "http://[HTTP::host]/psm/csr/default.asp" paths "/" }
If you wanted to use an iRule for this you could use something like this:when HTTP_REQUEST { if {[HTTP::path] eq "/"}{ HTTP::redirect "http://[HTTP::host]/psm/csr/default.asp" } }
Aaron
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