capture *part* of the hostname for redirect

Topics: Developer Forum, User Forum
Mar 17, 2009 at 8:56 AM
Hi,
I would like to do something like the following:

RedirectRule (.*).toto.com 0$.titi.com
Where (.*) is either fr, de, en, etc. Is this possible with IIRF? I think the way to do it with mod_rewrite is to redefine the base using RewriteBase / to get the hostname for capturing but this doesn't seem possible with IIRF. Is there another way to get the desired functionality with IIRF? I could write individual rules for each market, but I'm already at 200 rules (which are almost identical) and that's without even thinking about migrating the existing 200 or so IIS redirects. Any ideas?
Cheers
Anton