Forum Discussion

ukitsysadmin_95's avatar
ukitsysadmin_95
Icon for Nimbostratus rankNimbostratus
Jun 10, 2009

Redirect and Consolidation of domains

 

 

just say over the years we have numerous different domains that all used to display different web sites and now we want all the old domain names to point and re-point to their local geographical web site

 

 

All geographical sites point to the say virtual pool say 1.1.1.1

 

 

our back-end database will only except the full url address:

 

www.abc.co.uk

 

www.abc.nl

 

www.abc.be

 

 

so on and so on

 

 

So I want to do is redirect any abc.xx to www.abc.xx (xx being geographical suffix)

 

 

for example, our main UK site is www.abc.co.uk

 

 

all our old domains that we want to repoint would be

 

abc.co.uk

 

www.zxy.co.uk

 

zxy.co.uk

 

def.co.uk

 

www.def.co.uk

 

ghk.co.uk

 

www.ghk.co.uk

 

 

 

then the same for our dutch sites, www.abc.nl

 

abc.nl

 

www.zxy.nl

 

zxy.nl

 

def.nl

 

www.def.nl

 

ghk.nl

 

www.ghk.nl

 

 

is its possible, can we use a "data list group" to make administering all these domains eaiser in thr future ?

 

 

I hope this all makes sense
  • yea, this is probably the easiest way. In your iRule you could then do something like;

     

     

    if { [matchclass [HTTP::uri] equals $::uk_domains] } {

     

    redirect "http://www.abac.co.uk/"

     

    } elseif { [matchclass [HTTP::uri] equals $::nl_domains] } {

     

    redirect "http://www.abac.nl"

     

    }

     

     

    etc..etc..etc.