title: How to redirect to specific page if not logged in with .htaccess
body: <p>I am running apache2 and php5 in my Windows PC.</p>
  <p>I have protected my directory using <code>.htaccess</code> and<code>.htpasswd</code>. If login information is not set, or if the username-password combination is not correct, the browser will prompt for a username and password box by default, if user tries to access protected dir.</p>
  <p>But I want to redirect the user to a specific address or url. In short, I want to redirect user instead of displaying the HTTP basic authentication dialog. How can I make this possible?</p>