ukitsysadmin_95
Nov 10, 2009Nimbostratus
replace http::host headers
Is it possible to do the following
when HTTP_REQUEST {
if { [HTTP::host] starts_with "preview.www."} {
I want to redirect to
HTTP::redirect "http://preview2.www."same domain name"
but I keep getting
preview2.www.preview.www.abc.com
We have hundreds/thousands of domain names and growing, example
abc.com
def.com
ghi.com
because the growing number of domains
I want the irule just to replace, preview.www."domain name" with preview2.www."same domain name"
so no matter what domain name I type preview.www.abc.co.uk or com or be etc, etc it will redirect to preview2.www.abc.co.uk or com or be etc, etc
type:
preview.www."any domain name" redirect to preview2.www."same domain name"
Hope this make sense ?