.htaccess and WP blog question

Discussion in 'Site & Server Administration' started by michael11, Dec 27, 2006.

  1. #1
    Hi guys,

    I know that when you upload an .htaccess file with the code "Options -Indexes" (without quotes) in it that no one can read/check out which folders you have on your server (via flashget etc.), when you try to get a listing in your browser you only get an error returned.

    Now when you install a WP blog there automatically is an .htaccess file in your root folder created which has the following code in it:

    I tried to put the string Options -Indexes just before # END WordPress but that does nothing.

    Where do I have to place this string (or maybe anything else?) so that no one can see/read out my root folder and see which folders I have on my WP blog?

    Thanks in advance!

    Cheers
    Michael
     
    michael11, Dec 27, 2006 IP
  2. navjotjsingh

    navjotjsingh Well-Known Member

    Messages:
    640
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    125
    #2
    Try putting it after # END WordPress or before # BEGIN WordPress

    It should work then!
     
    navjotjsingh, Dec 27, 2006 IP
  3. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #3
    # END WordPress

    does nothing. It's just a comment.

    Try having it first. If it doesn't do it there, it won't anywhere!
     
    Nintendo, Dec 27, 2006 IP
  4. nddb

    nddb Peon

    Messages:
    803
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It should work anywhere, if it's going to.

    You mean when you install WP, people can view the index of your directories? Example?
     
    nddb, Dec 27, 2006 IP