Forum Discussion

Alejandro_Bedna's avatar
Alejandro_Bedna
Icon for Nimbostratus rankNimbostratus
Sep 25, 2012

URL Redirection

Hi All! I need to write a iRule to redirect users to a new set of domains with a 301 HTTP Status Code. Here is a example [

  • list01.olddomain.com.co/uri should be redirected to list01.newdomain.com.co/uri
  • list02.olddomain.com.co/uri should be redirected to list01.newdomain.com.co/uri
  • list03.olddomain.com.co/uri should be redirected to list01.newdomain.com.co/uri
  • list04.olddomain.com.co/uri should be redirected to list01.newdomain.com.co/uri

and so on...

Is a good approach to create a DataGroup List with all the old domains and write a irule using HTTP::header replace?

Any other idea is welcome

Thanks in advance