Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #257900

    Noticed that google webmaster tools had internal links listed that went to the enfold theme directory. I saw the posts about robot.txt file and have added that.
    Is there a way to disable the directory from being browsed altogether? Other than a blank index.html file? — how to add that to all the directories and subdirectories in the enfold theme directory.

    for instance: wp-content/themes/enfold/framework/php/

    It is only in the enfold theme that it is visible.

    -T

    #257945

    Hey!

    What code have you tried in robots.txt?

    Also note that re-indexing may take some time.

    Cheers!
    Josue

    #258023

    I used the code recommended in another post here.

    User-agent: *
    Disallow: /cgi-bin
    Disallow: /wp-admin
    Disallow: /wp-includes
    Disallow: /wp-content/plugins
    Disallow: /wp-content/cache
    Disallow: /wp-content/themes
    Disallow: /trackback
    Disallow: /feed

    But please note I added this after I already found it had been crawled by google.
    Beyond keeping the search engines out I would also want to keep the casual or not so casual person from browsing up and down in the directory in the enfold theme. I was surprised that it did not already contain an empty index.html file in each directory and sub-directory within the enfold theme. Is this normal practice?

    Thanks!

    Tom

    #258067

    Hi!

    I’ll see about adding one in to each directory but you can disable directory browsing from your htaccess with: Options -Indexes as well. Most servers/hosts typically disable it anyway but it sounds like you’ll want to do that now.

    See: http://www.thesitewizard.com/apache/prevent-directory-listing-htaccess.shtml

    Cheers!
    Devin

    #258069

    Great I will use the
    Options -Indexes
    in my .htaccess file.

    It would be nice to have the index.html files (in each directory) for a future update.

    Thank you!

    Tom

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Disable directory browsing of enfold theme’ is closed to new replies.