Parse part of a path and redirect to another domain with that part
Posted on 2009-12-21
I have 2 domains: example1.com and example2.com.
On example2.com there are a bunch of vanity urls like example2.com/first.middle.last for thousands of people.
But, users keep going example1.com looking for the vanity urls, which don't exist there.
I need to figure out how to redirect users who go to example1.com looking for those vanity urls to example2.com with the vanity url --- without setting up the thousands of redirects on example1.com.