0

過去数か月間、googleBot は私のサイト [index.php] にもう存在しないファイルにアクセスしていました。これは、適切な言語の適切なホームページへのすべてのルーティングが htaccess の apache 書き換えルールを介して処理されているためです。

DirectoryIndex index.php 答えとして、.htaccessルールをコメントアウトしました。

RewriteEngine on
RewriteBase /
Options +FollowSymLinks -Indexes -ExecCGI
# DirectoryIndex index.php    (not needed anymore, index.php doesnt exist)
# DirectoryIndex /en/home     (should it be set to this now??)

現在、すべてが崇高に機能します。http://website.orgルートは、 /en/home301 の永続的なリダイレクトを介して即座にリダイレクトされます!

しかし

66.249.67.142 / == crawl-66-249-67-142.googlebot.com が、存在しない index.php を読み込もうとして何度も私のサイトにアクセスしています。私は何をすべきか??

そのようなエントリを含むエンドレス エラー ログ ファイルへのスニーク ピーク (かわいそうな googlebot は、よりインテリジェントである可能性があると思いました...)

[Fri Mar 04 20:48:30 2011] [error] [client 66.249.66.177] File does not exist: 
/var/www/vhosts/site.com/httpdocs/index.php

[Fri Mar 04 20:58:59 2011] [error] [client 66.249.66.177] File does not exist: 
/var/www/vhosts/site.com/httpdocs/index.php

[Fri Mar 04 21:00:18 2011] [error] [client 66.249.67.142] File does not exist: 
/var/www/vhosts/site.com/httpdocs/index.php

[Fri Mar 04 21:01:05 2011] [error] [client 66.249.66.177] File does not exist: 
/var/www/vhosts/site.com/httpdocs/index.php

[Fri Mar 04 21:12:28 2011] [error] [client 66.249.66.164] File does not exist: 
/var/www/vhosts/site.com/httpdocs/index.php

[Fri Mar 04 21:27:30 2011] [error] [client 66.249.68.115] File does not exist: 
/var/www/vhosts/site.com/httpdocs/index.php 
4

2 に答える 2

1

誰かが index.php にリンクしたので、Google はそれをフォローしようとしています。

index.php から /en/home に書き直せば、成功するでしょう。

E: また、DirectoryIndex知る限り、パスにすることはできません。特に指定されていない場合、ディレクトリ内のどのファイルを提供する必要があるかをサーバーに伝えるだけです。

于 2011-03-05T01:30:16.017 に答える
1

//index.phpHTTP を介してサイトにアクセスするものに関する限り、これらは別個のリソースです。をリダイレクト/しているからといって、Google が以前に へのリンクを見たことがあれば意味がありません/index.php

にリダイレクト/index.phpする/en/homeのと同じ方法で にリダイレクトするだけです/

于 2011-03-05T01:31:18.430 に答える