Forum Moderators: phranque

Message Too Old, No Replies

Mod Rewrite Help

https

         

bmg27

11:14 pm on Mar 17, 2004 (gmt 0)

10+ Year Member



My current setup is as follows:

RewriteEngine on
RewriteLog /usr/local/apache/sites/www.mysite.com/logs/rewrite.log
RewriteLogLevel 1
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) [%{SERVER_NAME}...] [L,R]

This works great, any request for http:// is rewritten to https://

I am setting up a live chat solution and need to have the following happen:
If a request is made for [mysite.com...] or [mysite.com...] neither should be rewritten.
Hopefully this will keep live chat users from getting mixed content messages in their browser.
Can this be done with Redirect or should I have another Rewrite rule?

Thanks in advance.

closed

11:33 pm on Mar 17, 2004 (gmt 0)

10+ Year Member



Welcome to WebmasterWorld, bmg27!

One RewriteCond checking the REQUEST_URI should be enough. You'd put it in between your current RewriteCond and RewriteRule.

bmg27

2:51 am on Mar 18, 2004 (gmt 0)

10+ Year Member



Thanks for the reply - I'll give it a try in the AM