Forum Discussion
Ed_26015
Nimbostratus
Mar 13, 2013iRule HTTP redirect
Hello,
I am looking to add a redirect to a website so that everytime a user tries to go to the homepage;
www.edtest.com
they get redirected to
www.edtest.com/...
Kevin_Stewart
Employee
Mar 13, 2013If you specify nothing at all, the request URI is always "/".
So you'd do a simple redirect only if the URI equals "/"
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
HTTP::respond 302 Location "/webtools"
}
}
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