Mobile app version of vmapp.org
Login or Join
Cody1181609

: Is wildcard in Robots.txt in middle of string recognized? I need some string for robots.txt like: disallow: /article/*/ but I don't know if this is a proper way to do this or not?! I

@Cody1181609

Posted in: #RobotsTxt

I need some string for robots.txt like:

disallow:

/article/*/


but I don't know if this is a proper way to do this or not?!

I need, for example, the following URLs to be followed:


/article/hello
/article/123


But the following should be blocked:


/article/hello/add
/article/123/768&goshopping

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cody1181609

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ann8826881

Disallow: /article/*/


Yes, this should be OK and work as required in the main search engines. Note that this must appear on one line, not split as in your example.

The wildcard * is an extension to the original robots.txt standard and "designates 0 or more instances of any valid character" (according to Google).

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme