最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

google - Old robots.txt file not changing, can't update to the current robots.txt

matteradmin7PV0评论

While my wordpress website was in production, I created a robots.txt file to disallow everything. When the site was ready, I deleted the robots.txt file through cpanel and never thought much about it. Recently, I realized that the website was not showing up on google search results, upon further investigation, i realized that the old robots.txt file was still there (even though I can't locate the file in my root folder).

.txt

I inserted another robots.txt file in my root folder, this time with the allow option instead of disallow. But it doesn't update and still blocks google from accessing the site.

While my wordpress website was in production, I created a robots.txt file to disallow everything. When the site was ready, I deleted the robots.txt file through cpanel and never thought much about it. Recently, I realized that the website was not showing up on google search results, upon further investigation, i realized that the old robots.txt file was still there (even though I can't locate the file in my root folder).

http://youngauthors.my/robots.txt

I inserted another robots.txt file in my root folder, this time with the allow option instead of disallow. But it doesn't update and still blocks google from accessing the site.

Share Improve this question asked Nov 13, 2017 at 7:49 Gan Zhe JingGan Zhe Jing 32 bronze badges 1
  • 1 Cross-site duplicate – unor Commented Nov 15, 2017 at 2:52
Add a comment  | 

1 Answer 1

Reset to default 1

Just delete file robots.txt. WordPress is generating virtual robots.txt file, and Yoast SEO plugin (and other plugins too) allows you to customize it. But, if you have an actual robots.txt file, it will prevent virtual one to work.

Post a comment

comment list (0)

  1. No comments so far