을 사용하여 크롤링 여부를 확인합니다.어떤 이유로 든 내 사이트의 색인이 생성되지 않습니다.
http://www.domain.com/
는 http://www.domain.com/bg/
가
또한, 그것은 www
있다 /bg/medical/
여부를 어떤 이유로 중요한 거대한 크롤링 활동을 발휘 않습니다 http://www.domain.com/bg/medical/
크롤링되지 않습니다 크롤되지 않습니다. 그렇지 않으면 크롤링이 다시 작동하지 않습니다.
htaccess로 파일 :
RewriteEngine on
RewriteBase/
RewriteCond %{http_host} ^domain.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ site/lib/router.php
router.php 파일 관련 부분 :
@list($uri,$queryString) = explode('?',$_SERVER['REQUEST_URI'],2);
$uri = trim($uri,'/');
$_GET = array();
parse_str($queryString,$_GET);
if (empty($uri)) {
header('Location: /bg/home');
die();
}
@list($first,$second,$third,$fourth) = explode('/', $uri, 4);
///////////// VARIETY OF SWITCHES HERE with stuff like that:
if(empty($second))
switch($first){
case 'bg':
redirect('/'.$first.'/home/');
case 'en':
redirect('/'.$first.'/home/');
}
내가이 일을 분실 리디렉션 어딘가에 생각합니다. 그러나 나는 이유를 알 수 없다. 도움이 될 것입니다.
은 robots.txt에 : 그 또한 도움이된다면 :
User-agent: *
Allow:/
및 redirect
함수의 정의 :
function redirect($url) {
header("Location: $url");
die();
}
편집
Header fields
HTTP/1.1 302 Moved Temporarily
Date
Thu, 13 Jan 2011 11:02:13 GMT
Content-Length
0
Location
/bg/home
Keep-Alive
timeout=5, max=100
Connection
Keep-Alive
Content-Type
text/html
Server
Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8e-fips- rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
X-Powered-By
PHP/5.2.11
우리에게 실제 URL을 주면 무슨 일이 일어날 지 추적하는 데 도움이 될 것입니다 ... – Twister
com 대신 밑줄과 bg가없는 한 단어로 ortho_shop으로 대체하십시오. 내가 그것을 숨기고 이유는 stackoverflow 슈퍼 잘 인덱싱 가져옵니다, 그리고 난이 기사의 결과가 실제 사이트 전에 검색에 나타납니다 싶지 않아 – mgPePe