url redriction

Can you help me sharing a format for iRule redirection from

https://www.xy.com and from xy.com to https://www.yz.com

have you tried searching and building something yourself? this question gets asked a lot so there are enough examples.

some inspiration: DevCentral - An F5 Technical Community

Boney,

Thanks for your reply.. Yep I had a check on the link that is mentioned.

But there was another example where they use 301 redirect. So i wanted to see which one is better.

https://devcentral.f5.com/questions/irule-for-http-redirect-from-retired-url-to-new-url

in that question they explain the difference.

HTTP::redirect returns 302. if it is permanent, using 301 may be better.

What’s the difference between 301 redirects and 302 redirects http://webdesign.about.com/od/http/qt/tip301v302redir.htm