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 *</Directory>
but obviously it doesn't work.
Thank yoU !
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 *</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.