On Dec 2, 2007 11:36 AM, Matt Bullock <mbullock@xxxxxxxxx> wrote: > I need to test more but, on the http vhost if you don't specify the > SERVER_PORT !=81, then it wont work. You realise what you are doing, do you? RewriteCond %{SERVER_PORT} !=81 is a condition that will always be true, as %{SERVER_PORT} is never "=81". So this conditionis entirely unneeded. > # Easy name for users' public profiles > RewriteCond ! (.*) Same here, another condition that will always be true. See your log file. What is it acutally you are trying to achieve? You wanted to redirect https to http. That is easy and trivial. You also seem to want to redirect some https under some circumstances back to http. My first question is, why? Is there some pressing need why your users can't continue using https that justifies you and me going to so much trouble? (Basically I would just run everything over https and be done with it. The whole internet ought to be encrypted anyway). But if you really want this, let's see if we can help you. What is it that you want to achieven? From your example I guess it is the following. requests to http:/www.mydomain.com/scripts/vendor/membership.php need to be forwarded to https:/www.mydomain.com/scripts/vendor/membership.php and requests to https:/www.mydomain.com( something not scripts/vendor/membership.php) need to be directed back to http. You have two virtual hosts, on port 80 and port 81, and port 81 gets all https traffic from your loadbalancer. <VirtualHost *:80> RewriteRule ^/scripts/vendor/membership\.php$ https://www.domain.com/scripts/vendor/membership\.php [R=301,L] </VirtualHost> <VirtualHost *:81> RewriteCond $1 !/scripts/vendor/membership\.php RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L] </VirtualHost> Try this, and look in your rewritelog whether these rules are actually considered. A typing error somewhere else in your config might really mess things up. Krist -- krist.vanbesien@xxxxxxxxx krist@xxxxxxxxxxxxx Bremgarten b. Bern, Switzerland -- A: It reverses the normal flow of conversation. Q: What's wrong with top-posting? A: Top-posting. Q: What's the biggest scourge on plain text email discussions? --------------------------------------------------------------------- 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