Forum Discussion
Emad
Cirrostratus
Jun 23, 2014Rewrite 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 eve...
Kevin_Davies_40
Nacreous
Jun 23, 2014Johny,
Anytime you use "and" or "or" they must only be dealing with true or false comparisons. You must use brackets to ensure this or you will get errors or unexpected results.
if { [string tolower [HTTP::uri]] equals "/" and ([HTTP::host] eq "abc.com" or [HTTP::host] eq "www.abc.com")} {
Should be...
if {([string tolower [HTTP::uri]] equals "/") and (([HTTP::host] eq "abc.com") or ([HTTP::host] eq "www.abc.com"))} {
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