开发者

.htaccess Rewrite with authentication

开发者 https://www.devze.com 2023-03-28 05:16 出处:网络
I\'ve been looking for a htaccess rewrite and authentication solution but I can\'t understand the rewrite at all :(

I've been looking for a htaccess rewrite and authentication solution but I can't understand the rewrite at all :(

What I need is when a user goes to http://sub.do开发者_如何学运维main.com/folder or http://sub.domain.com/folder/ it will be asked for authentication through htaccess but if they go directly to that folder through a different domain they won't be asked for password.


Do you want just to disable directory listing? Put this into .htaccess file

Options -Indexes
0

精彩评论

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

关注公众号