Forum Discussion
D_Murphy_64954
Nimbostratus
Apr 19, 2013URI Handling for Redirection
I have a situation where I need to modify a simple redirect to ideally, include the URI afterwards, but the URI is unknown at the moment. The situation is that I have to compensate for some poorly wr...
What_Lies_Bene1
Cirrostratus
Apr 19, 2013There is;
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] contains "mydomain.com" } {
HTTP::redirect "www.mydomain.com[HTTP::uri]" }
}
I've added the string tolower command to avoid any Case issues.
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