I am using .htaccess/.htpasswd to secure a directory (ex: http://www.domain.org/preview/) but notice that the username/password entry screen works differently in two different scenarios:
1. If I use the URL: http://www.domain.org/preview/, it only asks for username/password ONCE, which is what I want it to do.
2. But if I use the URL : http://www.domain.org/preview (notice no ending slash) it asks for the username/password TWICE and after entering it the second time it successfully loads the page but it redirects to http://domain.org/preview/ (notice www. is now missing).
Why is this happening? I am afraid users are getting the username/pwd screen twice and might say 'forget this' and not look at the site.