开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜