Forum Discussion
ebowers_25830
Nimbostratus
Jul 08, 2013URL rewite but keep uri is some cases
Sorry if this has been covered before but the seaches I have done have not returend any examples that I can use.
I am trying to redirect a url like www.xyx.com/log.nsf to connect-us.xyz.com/lo...
Kevin_Stewart
Employee
Jul 08, 2013Try this:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "www.xyz.com" } {
"https://connect-us.xyz.com[HTTP::uri]"
}
}
Though the browser doesn't show it, there's ALWAYS a URI - even if it's just "/".
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