>From the Apache mod_rewrite documentation, the RewriteMap should be working under both server config and virtual host. I have the following RewriteMap rules: RewriteMap images txt:/path/to/img.map RewriteRule ^/images/([0-9][0-9][0-9])(.*)$ /multimedias/${images:$1}/$2 [L,PT] which I need to make it work on all the VirtualHosts. If I configure it on each VirtualHost, the rewritting map worked well. But if I move this to the server-configure level? the RewriteMap dont work any more?? The same situation happened in setting up RewriteRules. So my question is: What should I do to make RewriteMap and RewriteRules to work outside the VirtualHost configuration sections. ?? Many many thanks, lihao --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx