use RewriteMap in htaccess file

我怕爱的太早我们不能终老 提交于 2019-12-22 06:49:04

问题


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?


回答1:


From the documentation:

Context: server config, virtual host

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




回答2:


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/



来源:https://stackoverflow.com/questions/3975614/use-rewritemap-in-htaccess-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!