On 8/15/05, Joshua Slive <[EMAIL PROTECTED]> wrote:

> Try something like
> RewriteCond ${MyMap:%{HTTP_HOST}|not-found} !=not-found
> RewriteRule (.*) http://${MyMap:%{HTTP_HOST}}$1

You can save yourself one map lookup with:

RewriteCond ${MyMap:%{HTTP_HOST}}      ^(.+)$
RewriteRule (.*)     %1/$1 [P]

Krist


-- 
[EMAIL PROTECTED]
Solothurn, Switzerland

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to