Forum Discussion
BlackCisco_1037
Nimbostratus
Aug 15, 2007Extend domain name that connects to Irule
Hi,
I am reading this forum frequently and got a lot of use full information from it and finally i can ask something.
I have wrote an irule and evrytime it is used it is redir...
BlackCisco_1037
Nimbostratus
Aug 16, 2007Hi,
Here is the ruke i created:
when HTTP_REQUEST {
set newUri /virtual/upcnl2a/stoppage/
set newUri1 /images/logo.jpg
set newUri2 /images/stop.gif
set newUri3 /images/flageng.gif
set newUri4 /css/style.css
log local0. "Block"
if { not ( [HTTP::uri] contains $newUri ) and not ( [HTTP::uri] contains $newUri1 ) and not ( [HTTP::uri] contains $newUri2 ) and not ( [HTTP::uri] contains $newUri3 ) and not ( [HTTP::uri] contains $newUri4 ) } {
HTTP::uri $newUri
}
elseif { [HTTP::uri] contains $newUri1 } {
HTTP::uri $newUri$newUri1
} elseif { [HTTP::uri] contains $newUri2 } {
HTTP::uri $newUri$newUri2
} elseif { [HTTP::uri] contains $newUri3 } {
HTTP::uri $newUri$newUri3
} elseif { [HTTP::uri] contains $newUri4 } {
HTTP::uri $newUri$newUri4
}
}
Hope you can help.
gr
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
