Robots.txt file [closed]

孤街浪徒 提交于 2020-01-24 00:32:11

问题


I am using this code in my robots.txt file:

User-agent: *

Disallow: 

But, my one competitor is using

User-agent: *

Disallow: /

And his site is performing well in Google and on 1st rank. But my site is not ranking. I have checked everything in my site and it is OK. But how my competitor is performing well in Google? Is robots.txt file doesn't matter?


回答1:


Your site ranking is not depended on your robots.txt file. You just tell google how to crawl and index pages on your website.

Web site owners use the /robots.txt file to give instructions about their site to web robots;

Your site ranking depends on many factors like:

  • Keyword usage
  • Site structure
  • Site speed
  • Time spent on site
  • Number of inbound links
  • Quality of inbound links

By the way this will block all web crawlers from all content:

User-agent: *
Disallow: /

And this will allow all crawlers to access everything:

User-agent: *
Allow: /



回答2:


Please follow as below steps.

1)

User-agent: *
Disallow: /

Add which page or direct you don't want to crawl if you're targeting main director add public/domain name in it for disallow all

2)our site ranking depends on many factors like: <- This thing also matters nice wrote.

Keyword usage
Site structure
Site speed
Time spent on site
Number of inbound links
Quality of inbound links

3)take a help for website source http://www.robotsgenerator.com/

P.S. :- please remove website owner marketing link in robots.txt file for sure.



来源:https://stackoverflow.com/questions/30681245/robots-txt-file

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