Forum Moderators: phranque
RewriteCond %{HTTP_HOST} ^ads\.domain2\.com$
RewriteRule ^/$ [secure.domain2.com...] [R,L]
The first rewrite performs flawlessly.
The second one forwards to [secure.domain2.com...] not [secure.domain2.com...]
I can't see why this is happening.
The secure server accepts connections only on port 443.
I tried your idea of adding the port in and it didn't seem to do anything.
When I curl the url ads.domain2.com, this is the output I get (both with and without your fix):
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>302 Found</TITLE>
</HEAD><BODY>
<H1>Found</H1>
The document has moved <A HREF="https://secure.domain2.com/">here</A>.<P>
<HR>
<ADDRESS>Apache/1.3.33 Server at secure.domain2.com Port 80</ADDRESS>
</BODY></HTML>
I don't see why it is not including the "/aas/".