# don't set etags FileETag None ExpiresActive On ExpiresByType text/css A99989000 ExpiresByType image/gif A99989000 ExpiresByType image/png A99989000 ExpiresByType image/jpeg A99989000 ExpiresByType text/javascript A99989000 ExpiresByType application/javascript A9999000 ExpiresByType application/x-javascript A9999000 ExpiresByType text/javascript A9999000 Options +FollowSymlinks RewriteEngine On ErrorDocument 404 /missing.htm ErrorDocument 500 /500error.htm # Tony - I removed the L from the following line. L says, "ok - stop reading the htaccess file # now - which invalidates further rules # from this line - RewriteRule ^(.*)$ http://www.chesspub.com/$1 [L,R=301] RewriteCond %{HTTP_HOST} ^chesspub.com [NC] RewriteRule ^(.*)$ http://www.chesspub.com/$1 [R=301] RewriteRule ^$ http://www.chesspub.com/cgi-bin/yabb2/YaBB.pl [L] RewriteRule ^/$ http://www.chesspub.com/cgi-bin/yabb2/YaBB.pl [L] SetOutputFilter DEFLATE # Don't compress images SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary # Make sure proxies don't deliver the wrong content Header append Vary User-Agent env=!dont-vary