slomah_85788
Jun 10, 2009Nimbostratus
Appending iRule
Hi,
I have requested to create iRule which will add appending to url, as the customer will write (http://mycompany.com ) and the application won’t work unless you write the following (http://mycompany.com/test/app.aspx )
1) I created the following irule but the pictures on the page doesn’t appear
when HTTP_REQUEST {
if { not ([HTTP::uri] starts_with "/test") } {
HTTP::uri /test/app.aspx [HTTP::uri]
}
}
2) I used redirection irule like this and it works but I don’t know if this will affect the application
when HTTP_REQUEST {
if {
[HTTP::uri] equals "" or [HTTP::uri] equals "/" } {
HTTP::redirect http://mycompany.com/test/app.aspx }}
I would like if someone help me in No.1 to make work.