I would like find out how to write an Irule that will do the following:
I have a domain header “fake.ca” and redirect to fake1.ca/english but want to kept fake.ca/english in client browser. Another question, how would I write an Irule to verify a URL.
This will work;-
if {[HTTP:host] eq "fake.ca"} {
HTTP::header replace Host "fake1.ca"
}
if {[HTTP::path] eq "/"} {
HTTP::uri "/english"
}
Verify a URL how?
I would also like to find out how to verify the path contain nothing
I would also like to find out how to verify the path contain nothing
In the browser they only see a domain they have enter but in the back it would redirect under to other place.
A path always starts with a “/” even when they not entered anything, so the following checks for empty path;- if {[HTTP::path] eq “/”} { }