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.
Matt