Forum Moderators: phranque
RewriteCond %{HTTP:accept-encoding}!gzip
RewriteRule .*\.(htm)$ [cgi.example.com...] [L]
But seems - error 500 - I made something wrong.
The problem: I deliver all htm and js gzip compressed.
All modern browsers, Lynx and MSIE 5 included, can gzip compressed.
But there are sometimes proxy servers unabel for gzip delivery.
I thought to redirect with this line to a page on the only subdomain delivering uncompressed with a message there.
If you are rewriting or redirecting to a URL that will match the pattern in your rule, you must specifically exclude the rewritten URL from being rewritten again (and again, and again) by using a negative-match RewriteCond.
I see no reason to redirect the client; It seems that an internal rewrite would be appropriate.
Jim