dacrud_18985
May 16, 2008Nimbostratus
subdomain irule redirect
Hi all,
I'm trying to get an iRule to do this:
http://*anything*.domain.com/blah/blah redirect to http://www.domain.com/blah/blah
Any help would be much appreciated.
I'm trying to get an iRule to do this:
http://*anything*.domain.com/blah/blah redirect to http://www.domain.com/blah/blah
Any help would be much appreciated.
when HTTP_REQUEST {
if { [HTTP::host] contains "domain.com"} {
HTTP::redirect http://www[getfield [HTTP::host] ".domain.com" 2][HTTP::uri]
}
}
Click here for the wiki page for getfield.