-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07/23/2011 12:26 PM, Eric Covener wrote: >> How do I get the redirection to occur before the non-secure >> authorization request? >> > > If you put the rules in virtualhost context instead of htaccess, > they'll be evaluated earlier. > That does not change anything. Here is what I put in the CONF file: <Directory /var/www/html> RewriteEngine On RewriteCond %{REQUEST_URI} =/teachers/ [OR] RewriteCond %{REQUEST_URI} =/gated-bm/ RewriteCond %{SERVER_PORT} =80 RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R] </Directory> <Directory /var/www/html/gated-bm> RewriteEngine On RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R] </Directory> The non-secure authentication request still pops up first. - -- James Moe moe dot james at sohnen-moe dot com 520.743.3936 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk4snooACgkQzTcr8Prq0ZOCiwCfTeYsNrD8THEjSCe7H/dZk8xF 0U0An3DW49+477M7sSnlOi/IZFAgGruY =m0Um -----END PGP SIGNATURE----- --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx