Matthew Tice wrote:
Hello, I feel like this is an easy one - but it's throwing me off.
I have my webserver behind a netscaler load balancer. The netscaler handles
the SSL traffic and redirects the decrypted traffic to port 81. I need to
redirect all traffic except a certain page. The rewrite rule I have is
this:
RewriteCond %{SERVER_PORT} 80
RewriteRule ^/partners(.*)$ https://testvideo101.example.com/partners$1[R,NC]
That seems to be working fine. But I need it so that if someone were to
type in:
http://testvideo101.example.com/partners/video.php it does NOT try to
rewrite. I thought maybe this would work:
RewriteCond %{SERVER_PORT} 80
RewriteRule ! ^/partners/video.php [C]
RewriteRule ^/partners(.*)$ https://testvideo101.example.com/partners$1[R,NC]
But (I'm sure obviously to some) it doesn't.
Any assistance would be greatly appreciated.
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} !^/+partners/+video\.php
RewriteRule ^/partners(.*)$
https://testvideo101.example.com/partners$1[R,NC]
Mike
---------------------------------------------------------------------
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]