Forum Discussion
samigo_81875
Nimbostratus
Jul 30, 2013mod_rewrite equivalent in irule
I got a request to implement below equivalent of Apache mod_rewrite in F5 using irule.
RewriteCond %{REQUEST_URI} ^/Alias/Web/Main$ [...
nitass
Employee
Jul 30, 2013can you try this?
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if { [HTTP::uri] equals "/Alias/Web/Main" } {
if { [IP::addr [IP::client_addr] equals 194.156.44.0/26] } {
if { [HTTP::cookie value userLoggedIn] ne "true" } {
HTTP::respond 301 noserver Location "http://aliassso-prod"
}
}
}
}
}
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