Need Help With Redirection

Hi,

I need an iRule for a redirection like this bellow:

https://domain.com to https://domain.com/Application

How can I do that ?

Thanks in Advance!

HTTP::redirect “https://[HTTP::host]/Application”

This would work fine in the HTTP_REQUEST event.

Regards,

TRX

Hi Vinny,

You could also do something like this:

when HTTP_REQUEST {
if { [HTTP::path] equals "/" } {
HTTP::redirect "/somewhere/else.html"
}
}