Blocking directories in robots.txt with Apache
We have the valid URLs:
www.daniweb.com/foo
www.daniweb.com/foo/
www.daniweb.com/foo/1
www.daniweb.com/foo/2
www.daniweb.com/foo/3
If I want to disallow them all in robots.txt, are both of these valid and will they do the same thing?
Disallow: /foo
Disallow: /foo/
Will the latter also block the URL www.daniweb.com/foo or will that be interpreted as a page underneath the root directory, and not within the foo directory? Contrastly, will the former be interpreted as only blocking the single page and not the foo directory?
Related Article: Running asp or asp.net on apache
is a Linux and Unix discussion thread by chunguy that has 6 replies, was last updated 1 year ago and has been tagged with the keywords: apache.
Dani
The Queen of DaniWeb
21,343 posts since Feb 2002
Reputation Points: 1,555
Solved Threads: 367
Skill Endorsements: 122