Where foo1 and foo2 are dynamic, but xyz is a constant value.
I've seen plenty of examples that redirect a domain to a new domain, or a page to a new page. But nothing that just uses a regex type switcheroo. Am I looking at using mod_rewrite? Which makes me shudder, seeing as how I'm so very good at regex.
But I only want this to work for the xyz.mydomain.com virtualhost and I also only want to do this if /xyz isn't already in the URL. So the rewrite would happen the first time someone hits the site, but not again, unless they remove the /xyz/ from their address bar.
Anyone with any Apache config experience want to show me the way? [ May 26, 2003: Message edited by: Mike Curwen ]
subject: using mod_redirect and retaining full URL