Forum Discussion
Mohammad_Khrees
Nimbostratus
Jun 16, 2011ASM URL ReWriting
Dear all;
am new with BIG IP ASM, and i want to make url rewriting rule using the GUI (configuration utility)....
sample:
client request :
url rewrite to :
is there any tutorial for this?
2 Replies
- hoolio
Cirrostratus
Hi Mohammad,
You can use an iRule like this to rewrite the URI:when HTTP_REQUEST { if {[HTTP::uri] eq "/pls/apps/f?p=100"}{ HTTP::uri "/xyz" } }
For details on the commands you can check the wiki pages:
http://devcentral.f5.com/wiki/default.aspx/iRules/http_request
http://devcentral.f5.com/wiki/default.aspx/iRules/http__uri
Aaron - hoolio
Cirrostratus
Also note that the URI rewriting done in HTTP_REQUEST is done before ASM validates the request. So you'd need to have your ASM policy configured according to the rewritten URI--not the client's originally requested URI.
Aaron
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