Forum Discussion
BigIP_Support_9
Nimbostratus
Feb 23, 2006Change URI without redirect
I want to change the user URI as below:
http://www.abc.com/demo -> http://www.abc.com/demo1
Here is my code: if (http_uri == "/demo") {
redirect to "http://" + http_h...
Colin_Walker_12
Feb 23, 2006Historic F5 Account
It looks like you just need to work on your logic a little. Your second if clause would grab a lot of the same URIs as the first one, unless there's been something added to the "demo" in the uri.
I'd recommend changing the logic of the second if clause to be a little more specific in looking for a uri that has demo as well as something else, so that users won't end up getting redirected twice.
As it stands right now, the user comes in with a URI of "demo", gets redirected to "demo1" then gets redirected again because that still matches the regex in the second if clause.
-Colin
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
