Dennis_Jalbert
Sep 24, 2011Nimbostratus
Complex Redirect
I’m trying to create a redirect which changes the FQDN, keeps part of the URL static, and preserves the remaining part of the URI. That static part is going to be different on each side of the redirect though. Here is an example:
hosta.site.com/blah1/blah2/blah3/*
should redirect to
hostb.site.com/something1/something2/something3/*
where * could be anything that needs to be copied over.
It seems like I need to assign the wildcard part to a variable and then just use that in the redirect statement, but I’m not sure how to do that. I haven't done anything this complex before and I wasn't able to find anything like this by searching for forums. Thanks in advance!