Forum Moderators: open
Actually, Googlebot has been very well behaved lately and I only posted this in the event there is a problem that you should know about. I thought the last character being stripped from the extension was curious because AltaVista's Scooter had similar problems a few months ago (on a massive scale).
64.68.82.46 - - [29/Jan/2003:11:36:17 -0500] "GET /projects.ht HTTP/1.0" 302 275
"-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
should be projects.htm
this also occurs on directories:
64.68.82.51 - - [29/Jan/2003:11:35:13 -0500] "GET /tristan HTTP/1.0" 301 299 "-"
"Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
should be the directory /tristan/
Anybody else?
It looks like your "404 - Not found" redirection isn't set up properly as the line:
64.68.82.46 - - [29/Jan/2003:11:36:17 -0500] "GET /projects.ht HTTP/1.0" 302 275
"-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"
shouldn't show a 302 header ...
When using the "ErrorDocument 404... " directive in your .htaccess file, don't use full URLs otherwise you'll never return the correct 404 header. Use something like:
ErrorDocument 404 /myerrorfile.htm
The 302 header means "temporarily moved" ... are your files located on a cluster?
Dan
It's not just the quality of the search results y'know...
Use ErrorDocument 404 /myerrorfile.htm,
not ErrorDocument 404 [example.com...]
This can cause serious trouble with search engines, the least of which is that your custom 404 page will start showing up in the SERPs.
See the Apache Core Features [httpd.apache.org] documentation for details.
Jim
again: thanks!
ErrorDocument 400 /
ErrorDocument 403 /
ErrorDocument 404 /
ErrorDocument 500 /
(before it was "ErrorDocument 404 [<mysite.com...]
but now when I test the 404 redirection, and for example got to
[<mydomain>.com...]
I get the / page, but the address in my address bar doesn't change
to [<mydomain>.com...]
Is it possible to give the correct 404 headers, AND change the address
to [<mydomain>.com...]
Since this isn't really on topic anymore, feel free to sticky me
thanks alot!
You won't be able to change the apparent URL (the one in your browser's address bar) using the ErrorDocument directive.
To achieve this, you could use the mod_rewrite with an external redirect ([R] flag)
I used this a few times for "file not found - 404" errors as this is solved using a quite trivial rule, but I'm not sure that this URL rewrite could be applied for all error codes (especially the 500 code)
Dan