Forum Discussion

opers13_3280's avatar
opers13_3280
Icon for Nimbostratus rankNimbostratus
Oct 01, 2009

HTTP::redirect - is it correct??

I had to config a simple HTTP redirect(first one on my own)...it is working but I would like to verify if I'm missing anything or if I could improve the config.

 

 

requests to "http://mywebsite1.com" gets redirected to "http://mywebsite2.com"

 

 

when HTTP_REQUEST

 

{

 

log local0. "WWW_Redirect"

 

HTTP::redirect "http://mywebsite2.com"

 

}

 

 

thanks in advance!
  • Hi Alex,

     

    It looks good. Just keep in mind that that you rule will redirect any request rather then just mywebsite1.com.

     

     

    CB