Forum Moderators: phranque
The htaccess looks like this...
RewriteEngine On
RewriteCond %{SERVER_PORT}!^443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R]
AuthName "****"
AuthType Basic
AuthUserFile /etc/apache2/conf/***
require valid-user
Any ideas how to stop it from asking to authenticate twice?
Practically speaking, the cause of this problem is that mod_auth runs before mod_rewrite.
If you have access to httpd.conf, try putting the rewrite only in the configuration code for port 80, and the authorization code only in the section for the secure server.
Jim