Forum Discussion
Debbie_123533
Nimbostratus
Oct 24, 2013Redirect
I have a very simple redirect I want to create but can't seem to get my syntax correct.
All I want to do is redirect Http://website1 to http://website2
How do I do this with a simple iRule?...
Kevin_Stewart
Employee
Oct 24, 2013Please try this:
when HTTP_REQUEST {
HTTP::redirect "http://www.example.com"
}
Applying this iRule to a virtual server will cause ALL requests to be immediately redirected to the second host. This also assumes the two URLs are not hosted on the same virtual server.
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