Google Indexing My Directory Folder URLs

Discussion in 'Google' started by Constantinople, Feb 12, 2014.

  1. #1
    When I use the site:domain.com command in Google I notice that for some strange reason they are indexing my directory folder urls, such as:

    http://www.domain.com/files/
    http://www.domain.com/files/photos/

    I want them to index the images within these folders, however, I don't want them to include the directory folder urls in Google Search.

    Can I take care of this via robots.txt? If so how would I do this?
     
    Constantinople, Feb 12, 2014 IP