I need to test more but, on the http vhost if you don't specify the
SERVER_PORT !=81, then it wont work.

Besides the http/https rules, here are the only other rules that we are
using:

            # Easy name for users' public profiles
          RewriteCond ! (.*)
          RewriteRule
\.(html|php|css|js|jpg|gif|png|pdf|txt|swf|flv|wmv|wav|htm)$ - [S=1]
          RewriteRule ^([^/]+) publicprofile.php?webprofileurl=$1
[L,QSA]

          # Force www if not present
          RewriteCond %{HTTP_HOST} ^domain\.com$
          RewriteRule ^.*$ http://www.domain.com%{REQUEST_URI} [R=301,L]

Thanks,

Matt

-----Original Message-----
From: Krist van Besien [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 01, 2007 2:23 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Redirect HTTPS --> HTTP

On Nov 30, 2007 9:27 PM, Matt Bullock <[EMAIL PROTECTED]> wrote:

> I see the issue with server_port =81 not being matched, but I have
tried
> removing that directive, as well as changing it to !=81.  I don't
really
> have any leads as to what to try next.

You are testing wether or not the server port is =81 or =80, but since
it is either 80 or 81 this never matches.

You need to realise that the RewriteCond ought to have been:
RewriteCond {SERVER_PORT} !81
(Since you don't need a = sign, I'm sorry I didn't find this out sooner)
You don't need this rewritecond however, as you allready take care of
sorting on port numbers by using virtual hosts.

However, I also see the following in your log:

domain.com/sid#55555585b900][rid#555555b7c6a8/subreq] (2) init rewrite
engine with requested uri /error/include/top.html
70.104.12.9 - - [30/Nov/2007:12:15:49 --0800] [www.
domain.com/sid#55555585b900][rid#555555b7c6a8/subreq] (3) applying
pattern '\.(html|php|css|js|jpg|gif|png|pdf|txt|swf|flv|wmv|wav|htm)$'
to uri '/error/include/top.html'
70.104.12.9 - - [30/Nov/2007:12:15:49 --0800] [www.
domain.com/sid#55555585b900][rid#555555b7c6a8/subreq] (4) RewriteCond:
input='!' pattern='(.*)' => matched
70.104.12.9 - - [30/Nov/2007:12:15:49 --0800] [www.
domain.com/sid#55555585b900][rid#555555b7c6a8/subreq] (1) pass through
/error/include/top.html

Do you have other rewrite rules?

Krist









-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
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]

Reply via email to