> I am trying to use a referring url redirection with the rewrite module. It
> works fine in httpd.conf, but when I use it in .htaccess, I get the following
> error message in the error_log:
> access to /path/.htaccess failed for [ip], reason: RewriteMap not allowed here
> This is the contents of the .htaccess file:
> Rewri*gine on
> RewriteMap deflector txt:/home/skiesare/deflector.map
> RewriteRule ^/(.*) ${deflector:%{HTTP_REFERER}|/$1}
> RewriteRule .* - [PT]
> I'm running Redhat 5.0. The httpd has mod_rewrite compiled in.
> Can someone give me some help?
not allowed here", i.e. you cannot use RewriteMap in .htaccess files. It's
intended this way and documented this way. The reason is security (only the
webmaster can define RewriteMaps, although they can be _used_ by normal users
in their .htaccess files, too).
Greetings,
Ralf S. Engelschall
www.engelschall.com