Forum Discussion

MQKC_254171's avatar
MQKC_254171
Icon for Nimbostratus rankNimbostratus
Mar 13, 2016

How do I do a 301 redirect to an exact URI only?

I have seen other example irules for redirection that have an undesired behavior.

 

What I want is for abc.com, abc.com/home, abc.com/careers.html, etc. to all be redirected to def.com/locations.

 

The examples that I have seen so far would cause abc.com/something/aboutus.html to redirect to def.com/locations/something/aboutus.html. Basically, anything in the requested URI would be appended to the redirected URI unless I had explicitly covered all possible cases in the first part of the irule.

 

I'm sure it's something simple that we're missing, but any tips on how to do this properly would be appreciated.

 

Thanks

 

4 Replies