Once again, Joshua, thanks for your help. What are your feelings on Rewrites vs. Redirects? How would I use a Redirect (or RedirectMatch) in this situation? I tried doing a RedirectMatch with a similar regexp to what I used with RewriteMatch, but it wouldn't work.
Thanks! -- BTR On Dec 16, 2007 8:26 PM, Joshua Slive <[EMAIL PROTECTED]> wrote: > On Dec 16, 2007 10:06 PM, Bryan Richardson <[EMAIL PROTECTED]> wrote: > > > > > This of course requires a login. Now, the situation I'm coming across > is > > I'm getting two requests for login; one at http://localhost and the > other at > > https://localhost. So, it looks to me like the authorization request is > > occurring before the rewrite, then once the redirect happens it's > requiring > > another login because of the change in address (correct?). Is there any > way > > (short of using the config files rather than .htaccess files) to force > the > > Rewrite to happen first? Also, would use Redirects rather than Rewrites > fix > > the problem? I've already tried to use a Redirect (RedirectMatch, > > actually), but I couldn't get it to work. If Redirects would fix the > > problem then any suggestions on how to use a Redirect in the .htaccess > file > > for this situation would be much appreciated!!! > > No, you can't fix this in .htaccess. The redirect itself may be > confidential, so the auth must happen before the redirect. > > To fix the problem, you just put the auth stuff inside the ssl vhost > in httpd.conf. > > Joshua. > > --------------------------------------------------------------------- > 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: [EMAIL PROTECTED] > " from the digest: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >