Forum Discussion
Joe_Pipitone
Jan 26, 2011Nimbostratus
Stripping part of URI and integrating with iRule
I have to perform the following: http://www.oursite.org/directory1/directory2/somepage.aspx needs to rewrite to http://oursite.org/somepage.aspx - essentially just stripping out directory1 and dir...
Joe_Pipitone
Jan 26, 2011Nimbostratus
Hmm....doesn't seem to work, results in a redirect loop as well.
From logs:
Rule test HTTP_REQUEST: /directory1/directory2 found, redirected
And below that:
Rule test HTTP_REQUEST: go to homepage
what's the reason for the [string range [HTTP::uri] 21 end ]?
Also - as far as the else statement, if the user requests /directory1/directory2/somepage.aspx, the somepage.aspx needs to be kept, which I see the HTTP::uri will do for me.
Thanks for your help so far.
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