Assign a RewriteBase / for every directory under docroot
HI:
I'm trying to assign by default a RewriteBase / directive for every folder under docroot folder.
Do you know how to do it ?
I've tried using a
<Directory "/docroot/*">RewriteBase *&开发者_如何学JAVAlt;/Directory>
but obviously it doesn't work.
Thank yoU !
Try <DirectoryMatch>
instead:
<DirectoryMatch "^/docroot/">
RewriteBase /
</DirectoryMatch>
Note that <DirectoryMatch>
is only allowed in the server configuration and virtual host context.
精彩评论