What's the canonical way to redirect the following? http://host/xyz[/abc] to http://xyz.host/[abc]
The following works RedirectMatch ^xyz(.*) http://xyz.host$1 but suffers from the problem that http://host/xyz123 is redirected to http://xyz.host123 which is not intended. I suppose one way would be to use a pair of redirects: RedirectMatch ^xyz http://xyz.host RedirectMatch ^xyz/(.*) http://xyz.host/$1 but is there a better way? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org