开发者

.htaccess Rewrite with authentication

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜