Forum Discussion
Sorin_Rusnac_86
Nimbostratus
Mar 27, 2008http redirect ?
Hi -
I am trying to do a redirect as such:
when HTTP_REQUEST {
HTTP::redirect "http://[HTTP::host]/mysite/test1"
}
I dont get any errors but when I apply the irule it does not seem to work. If I do this:
when HTTP_REQUEST {
HTTP::redirect "http://[HTTP::host][HTTP::uri]"
}
it does work however I want the F5 to always send it to HTTP::host /mysite/test1 so the /mysite/test1 will never change.
Thanks
- Nicolas_Menant
Employee
Hi,when HTTP_REQUEST { if { not ([HTTP::uri] contains "mysite") } { HTTP::redirect "http://[HTTP::host]/mysite/test1" } }
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