Mobile app version of vmapp.org
Login or Join
Tiffany637

: 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...

@Tiffany637

Posted in: #RobotsTxt

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...

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Tiffany637

2 Comments

Sorted by latest first Latest Oldest Best

 

@Cofer257

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.

10% popularity Vote Up Vote Down


 

@Sarah324

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*

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme