Hi,
So I've tried this a number of ways and so far I'm not have any luck (other
than doing it via 301 redirect in Apache). I need to redirect some specific
urls to other specific urls on a different site (re-branding and new
servers setup, but we want to maintain our SEO juice for these specific
domains.

This is what I'm trying to achieve, imagine I have this url:

http://www.olddomain.com/pageXXX/fileXXX


and I want it to redirect to:

http://www.newdomain.com/pageYYY/fileYYY


www,newdomain.com is a seperate backend on my haproxy config.

So I set this up in my front end:


reqrep ^([^\ ]*)\ /pageXXX/fileXXX/(.*)     \1\ /pageYYY/fileYYY\2

reqirep ^Host:\ www.olddomain.com   Host:\ www.newdomain.com


But it doesn't work. What am I doing wrong?

Aaron


--
Aaron Golub
IT Director
TurnHere, Inc.
415-820-1850
[email protected]

-------------------------------------------------------------------------------------------------------------
If you received this communication by mistake, please don't forward it to 
anyone else (it may contain confidential or privileged information), please 
erase all copies of it, including all attachments, and please let the sender 
know it went to the wrong person. Thank you.

Reply via email to