Forum Discussion
jato_40959
Nimbostratus
Jun 02, 2010Redirect 301
I have implemented this irule in my system:
when HTTP_REQUEST {
HTTP::respond 301 Location https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
The irule isn't working, ...
hoolio
Cirrostratus
Jun 15, 2010The error occurs if you try to send more than one response using HTTP::redirect or HTTP::respond for the same request. So this would cause the error:
when HTTP_REQUEST {
HTTP::respond 200 content "first response"
HTTP::redirect "http://second.example.com/"
}
Bhattman's example can only ever send one response per request, so it should work fine.
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