use RewriteMap in htaccess file

2019-05-01 17:20发布

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?

2条回答
冷血范
2楼-- · 2019-05-01 17:38

From the documentation:

Context: server config, virtual host

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

查看更多
forever°为你锁心
3楼-- · 2019-05-01 17:44

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/

查看更多
登录 后发表回答