Does Google bot crawl entire site if there is a redirect

点点圈 提交于 2019-12-13 06:09:45

问题


I have a website that redirects a user to the login page after a three page views. Will google bot be able to look at all of my pages or will it be redirected as well. If so, how can I get around this.

I found this answer in a question about googlebot,

if((!$user->uid) || (!strpos($_SERVER['HTTP_USER_AGENT'],"Googlebot"))  ||      (!strpos($_SERVER['HTTP_USER_AGENT'],"MSNBOT")) ){
//  redirect
else{
// don't redirect
}

Would this work?


回答1:


  1. Do not serve up different content to search engines then you do your users. That's called cloaking and is a great way to get banned.

  2. You should use "first page free". It's what sites like Experts Exchange use to allow Google to crawl their restricted content.




回答2:


Google Bot gets redirected and it will take content from the redirected page into its database as for the original URL.



来源:https://stackoverflow.com/questions/10356749/does-google-bot-crawl-entire-site-if-there-is-a-redirect

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!