httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krist van Besien <krist.vanbes...@gmail.com>
Subject Re: [users@httpd] rewritemap help?
Date Fri, 19 Aug 2005 08:43:29 GMT
On 8/15/05, Joshua Slive <jslive@gmail.com> 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


-- 
krist.vanbesien@gmail.com
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message