0

지난 몇 달 동안 googleBot은 내 사이트 [index.php]에 더 이상 존재하지 않는 파일을 치고 있습니다. htaccess의 규칙을 통해 아파치 재 작성 규칙을 통해 적절한 언어로 홈 페이지에 대한 모든 경로가 처리됩니다.루트가 [/ en/home]으로 리디렉션 될 때 GoogleBot이 [index.php]에 관심을 갖는 이유는 무엇입니까?

Ans By의, 내 htaccess로 밖으로 DirectoryIndex index.php 규칙

현재
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 루트 (301) 영구적 rediret를 통해 /en/home에 즉시 리디렉션됩니다!

그러나

66.249.67.142/==이 존재하지 않는, index.php를 읽으려고 또 다시 내 사이트를 타격하고 crawl-66-249-67-142.googlebot.com. 어떻게해야합니까 ?? 구글이 따라하려고 있도록

같은 항목이 끝없는 오류 로그 파일에 몰래 피크 (내가 좀 더 지능 될 줄 알았는데 가난한 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 

답변

1

누군가가, index.php에 연결 그것.

index.php에서/en/home으로 다시 작성하면 금세됩니다.

E : 또한 DirectoryIndex은 AFAIK 경로가 될 수 없습니다. 디렉토리에있는 파일을 지정하지 않으면 서버에 제공해야하는 파일을 알려줍니다.

+0

그게 DirectoryIndex ..... 경로에 대한 중요한 세부 사항 감사합니다! – Sam

1

//index.php은 HTTP를 통해 사이트에 액세스하는 모든 정보가 별도 인 것입니다. /을 리디렉션하고 있기 때문에 이전에 /index.php에 대한 링크가 Google에 표시되는 경우 아무런 의미가 없습니다.

/을 리디렉션하는 것과 같은 방식으로 /index.php에서 /en/home으로 리디렉션하면됩니다.