Emad
Jun 23, 2014Cirrostratus
Rewrite and Mask
Hi, I need to hide specific URI path via IRule.
Actual URL: www.abc.com/myApp/index.php
Required: www.abc.com/index.php
I have wrote an iRule but its replaceing and adding "/myApp/" for every "/"
when HTTP_REQUEST {
log local0. "Incoming URI = [HTTP::uri]"
if { [string tolower [HTTP::uri]] equals "/" and ([HTTP::host] eq "abc.com" or [HTTP::host] eq "www.abc.com")} {
set uri [string map -nocase {"/" "/myApp/"} [HTTP::uri]]
log local0. "New URI = $uri"
HTTP::uri $uri
}
}