use RewriteMap in htaccess file
Asked Answered
B

3

6

How can i use RewriteMap directive in htaccess file? When i put it there i get "RewriteMap not allowed here" error.

I know this error will disappear when put it in httpd.conf or virtualhost configuration file. But i want to know is it possible to put it in htaccess or not?

Biodegradable answered 20/10, 2010 at 7:29 Comment(0)
B
11

From the documentation:

Context: server config, virtual host

so the answer is "no", I'm afraid.

Bricebriceno answered 20/10, 2010 at 7:43 Comment(0)
T
4

As far as I know it cannot be used in htaccess.

Maybe you could check this out as an alternative: http://savride.wordpress.com/2008/09/09/rewritemap-directive-in-htaccess-file-problem/

Trimorphism answered 20/10, 2010 at 7:33 Comment(0)
W
0

As you say you can declare RewriteMap in VirtualHost, but once declared you can use it in .htaccess, I have used it like that in Apache 2.4

Waterhouse answered 8/8, 2024 at 8:5 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.