Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想限制对特定路径使用 HTTP Basic Auth 的访问,以便有人访问/foo/bar时会收到身份验证表单提示,但不会提示/(.*)。
/foo/bar
/(.*)
我使用mod_rewrite所以我不能像往常那样把.htaccess一个文件夹放在里面。
mod_rewrite
.htaccess