Forum Discussion
kevin_50596
Nimbostratus
Jul 10, 2008Multi-part Irule
Hello, I'm fairly new to writing iRules so I'm not sure exactly how to get this done. Any help would be greatly appreciated.
Here's some data to give you context for what I'm trying to...
kevin_50596
Nimbostratus
Jul 10, 2008Well, that worked wonderfully! Thanks again for your help. Unfortunately, and as always, the plot thickens.
The guy I had originally discussed this change with didn't give me all the facts. Here be the situation:
Any http request coming into "http://www.site1.org/forms" must be somehow be redirected to "http://www.site2.com/forms".
The problem is that "/forms/" has subdirectories. Therefore I don't think a simple redirect will do the trick. Also, since it's the URL which needs changed and not just the uri, a uri rewrite won't work either. I tried it but was unsuccessful. Is there a way to do some kind of partial URL rewrite while still leaving "/forms/..." and trailing subdirectories intact?
For example, the iRule you put together for me would take a request for "www.site1.org/forms/sub1/sub2" and redirect it to "www.site2.org/forms" without keeping "/sub1/sub2".
Is this even possible?
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