httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Tice" <>
Subject [users@httpd] Rewrite all but one page
Date Wed, 09 Apr 2008 14:09:46 GMT
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

RewriteCond %{SERVER_PORT} 80
RewriteRule ^/partners(.*)$$1[R,NC]

That seems to be working fine.  But I need it so that if someone were to
type in: it does NOT try to
rewrite.  I thought maybe this would work:

RewriteCond %{SERVER_PORT} 80
RewriteRule ! ^/partners/video.php [C]
RewriteRule ^/partners(.*)$$1[R,NC]

But (I'm sure obviously to some) it doesn't.

Any assistance would be greatly appreciated.


View raw message