Rewrite all but one page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux