Forum Discussion
CAMES_13251
Nimbostratus
Jun 20, 2011Remove URI if it doesn't match my options?
Hi All,
I'm quite new to irules, and can't get something working that should be quite simple.
What I am trying to do is redirect the request based on a couple of key words in the U...
Michael_Yates
Nimbostratus
Aug 02, 2011As soon as you do a 301 Redirect the traffic is gone and can no longer be affected by this iRule.
For example, www.test.com/test1/hello would redirect to www.testone.com/hello because test1 is a keyword. I haven't even got to the part where I remove the keyword from the URI though, I can't even preserve the URI after the redirection so far! With the code below, it doesn't append the URI to the new site (www.test.com/test1/hello just goes to www.testone.com, for example).
It is going to be impossible to mask a URI on a redirect. You can mask it to the server, but on the initial request it is going to have to be there.
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