Hi!

I am a bit puzzled with my drupal 6 site. It seems after I installed boost and added the .htaccess rules I started getting many entries in google analytics as "/404.html?page=/&from="

I asume those are visitors seeing a 404 page, but the thing is I have studied their behavior and it seems totally normal. It happens to them in the homepage or in any other page. They arrive directly or via google or other search engines. The only thing in common is they are using Internet Explorer (all versions, not only 6 and prior) and windows. It seems it started when I installed boost a few months ago.

Could it be they are reaching the site but Boost cache is cleared at that moment? Could it be that i enabled page compression?

Anyone having experience with this? I paste my .htaccess for info.

Thank you very much in advance, and keep up the fantastic community that has made possible that a total newbie started developing sites with Drupal!!!

PS) Forgot to mention this was initially a multilanguage install, but decided to go for two different domains at a later stage, and therefore the .se entries in the .htaccess. Could it be that?


Options ExecCGI FollowSymLinks

Options +FollowSymLinks +SymLinksIfOwnerMatch

RewriteEngine on
RewriteBase /

RewriteCond %{HTTP_HOST} ^ilovecasino.se [NC]
RewriteRule ^(.*)$ http://www.ilovecasino.es/sv/$1 [L,R=301]

RewriteCond %{HTTP_HOST} ^www.ilovecasino.se [NC]
RewriteRule ^(.*)$ http://www.ilovecasino.es/sv/$1 [L,R=301]

RewriteCond %{HTTP_HOST} ^ilovecasino.es [NC]
RewriteRule ^(.*)$ http://www.ilovecasino.es/$1 [L,R=301]

#RewriteCond %{HTTP_HOST} ^www\.ilovecasino\.es/node [NC]
#RewriteRule ^(.*)$ http://www.ilovecasino.es/ [L,R=301]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


# Cache various files for 2 weeks

ExpiresActive on
ExpiresDefault "access plus 1 month"


ExpiresActive on
ExpiresDefault "access plus 1 month"


SetOutputFilter DEFLATE

### BOOST START ###
AddDefaultCharset utf-8
FileETag MTime Size


Header set Expires "Sun, 19 Nov 1978 05:00:00 GMT"
Header set Cache-Control "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"



AddCharset utf-8 .html
AddCharset utf-8 .css
AddCharset utf-8 .js
AddEncoding gzip .gz


ForceType text/html


ForceType text/javascript


ForceType text/css

# Gzip Cookie Test
RewriteRule boost-gzip-cookie-test\.html cache/perm/boost-gzip-cookie-test\.html\.gz [L,T=text/html]

# GZIP - Cached css & js files
RewriteCond %{HTTP_COOKIE} !(boost-gzip)
RewriteCond %{HTTP:Accept-encoding} !gzip
RewriteRule .* - [S=2]
RewriteCond %{DOCUMENT_ROOT}/cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.css\.gz -s
RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.css\.gz [L,QSA,T=text/css]
RewriteCond %{DOCUMENT_ROOT}/cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.js\.gz -s
RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.js\.gz [L,QSA,T=text/javascript]

# NORMAL - Cached css & js files
RewriteCond %{DOCUMENT_ROOT}/cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.css -s
RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.css [L,QSA,T=text/css]
RewriteCond %{DOCUMENT_ROOT}/cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.js -s
RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.js [L,QSA,T=text/javascript]

# Caching for anonymous users
# Skip boost IF not get request OR uri has wrong dir OR cookie is set OR request came from this server OR https request
RewriteCond %{REQUEST_METHOD} !^(GET|HEAD)$ [OR]
RewriteCond %{REQUEST_URI} (^/(admin|cache|misc|modules|sites|system|openid|themes|node/add))|(/(comment/reply|edit|user|user/(login|password|register))$) [OR]
RewriteCond %{HTTP_COOKIE} DRUPAL_UID [OR]
RewriteCond %{HTTP:Pragma} no-cache [OR]
RewriteCond %{HTTP:Cache-Control} no-cache [OR]
RewriteCond %{HTTPS} on
RewriteRule .* - [S=3]

# GZIP
RewriteCond %{HTTP_COOKIE} !(boost-gzip)
RewriteCond %{HTTP:Accept-encoding} !gzip
RewriteRule .* - [S=1]
RewriteCond %{DOCUMENT_ROOT}/cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html\.gz -s
RewriteRule .* cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html\.gz [L,T=text/html]

# NORMAL
RewriteCond %{DOCUMENT_ROOT}/cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html -s
RewriteRule .* cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html [L,T=text/html]

### BOOST END ###

Comments

lowfour’s picture

Anyone with experience with this? I am going crazy and don't know what to look for.

Thank you in advance!

fgm’s picture

This is help from Urchin (aka Google Analytics) for you:

http://analytics.blogspot.com/2006/09/tip-tracking-404-pages.html

marco88’s picture

I noticed weird 404 and 403 errors since migrating to Drupal 6 too.

If I select all the 404 I see that most of same are from the ISP I use.

I reckon that is me going from Analytics to my site or something similar.

I created a segment to exclude myself using "City" and "not Anonymous".

Not great but that seems to do the trick.

PS: I don't have boost but I did turn on page compression recently.

Hope this helps,

Kind regards,
Marc.

lowfour’s picture

Well, apparently the culprit of this error is the Boost option "Aggressive Gzip: Deliver gzipped content independent of the request header."

While looking for Top Page not Found I saw that a clear leader was: "boost-gzip-cookie-test.html".

I unchecked the mentioned "Aggressive Gzip" option under the Boost Configuration and never saw that error again in the site nor in Google Analytics.

Thanks to everyone for your help.

CarbonPig’s picture

I'm having this issue and I'm running Boost 7.x-1.0-beta2

I don't see the option for Aggressive Gzip.

I remember this in previous versions, but it seem to have been removed.

Can someone please help to solve this issue.

It's destroying my SEO.

Regards,

CP

CarbonPig’s picture

I'm not sure this is related specifically to boost, but I posted a related topic here:

http://drupal.org/node/1905662