Mobile app version of vmapp.org
Login or Join
RJPawlick198

: Google Webmaster Tools robots test not working Within Webmaster Tools I have supplied my test content: User-agent: * Disallow:/admin/ Disallow: /tag/ When I specify the URL to test against, for

@RJPawlick198

Posted in: #GoogleSearchConsole #RobotsTxt

Within Webmaster Tools I have supplied my test content:

User-agent: *
Disallow:/admin/
Disallow: /tag/


When I specify the URL to test against, for example:
www.site.com/tag/

It gives me this result:

"Allowed: Detected as a directory; specific files may have different restrictions"

As far as I know I have set this up correctly, shouldn't Google be saying that the /tag/ directory is "disallowed"?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @RJPawlick198

2 Comments

Sorted by latest first Latest Oldest Best

 

@Dunderdale272

If you've just updated your robots.txt file then Google may not have re-read it yet. Give it some time to get re-crawled. Do make sure you have a newline between User-agent: * and Disallow:/admin/.

You could also ask Google to permanently remove specific directories using the URL Removal Tool. From Google's help page:


On the Webmaster Tools home page, click the site you want.
On the left-hand menu, click Optimization and then click Remove URLs.
Click New removal request.
Type the URL of the directory you want removed from search results
and then click Continue. (The URL is case-sensitive)
Click Remove directory.
Click Submit Request.


Also take a look at when not to use the URL Removal Tool.

10% popularity Vote Up Vote Down


 

@Yeniel560

User-agent: *
Disallow: /admin/
Disallow: /tag/


Try this, it must work.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme