I've been using this plugin, but I have a problem that I think should be solved: when I first try to access a protected site by entering the URL on the browser's address bar, I always get redirected to $_SERVER['HTTP_HOST'] .'/wp-admin/', which means that when the WordPress install it's on a folder, it's not properly redirected to the login page for that installation