: Robots.txt - just a guess about wild-card so if I disallow tempPage, does it mean tempPage_1, temp_Page_2, tempPage_x are also disallowed? I tried to google this up, but I don't know...
so if I disallow tempPage, does it mean tempPage_1, temp_Page_2, tempPage_x are also disallowed? I tried to google this up, but I don't know...
More posts by @Tiffany637
2 Comments
Sorted by latest first Latest Oldest Best
Yes those pages would be blocked, assuming they are at the same directory level. There is no * wildcard in robots.txt, except a single * for the User agent.
In other words this...
User-agent: *
Disallow: /tempPage
...would block yoursite.com/tempPage, yoursite.com/tempPage_1, yoursite.com/temp_Page_2, yoursite.com/tempPage_x.
1) If tempPage_1, temp_Page_2, tempPage_x are subdirectories of tempPage then, yes, they are blocked.
2) If they are parallel directories then, no, they are not blocked.
3) If they are separate files then, no, they are not blocked.
Assuming #1 is not true, to block them all you would use:
disallow tempPage*
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.