How to hide index of wordpress directory?

Discussion in 'WordPress' started by geekology, Dec 11, 2007.

  1. #1
    Hi All,

    I have recently installed WP 2.3.1 on the subdirectory on my site and have followed the instructions
    (http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory) Giving WordPress its Own Directory While Leaving Your Blog in the Root Directory. Now, I am able to view my blog on xyz.com, till this part its fine.

    The problem I am facing is that, now my index files of wordpress folder can be seen publicly at xyz.com/wordpress (wordpress is the name i have given to my wordpress directory)

    1)How can i hide this folder from public view?
    2) How can I make this page say, 404 not found ( for public)?
     
    geekology, Dec 11, 2007 IP
  2. TheDutchMan

    TheDutchMan Peon

    Messages:
    374
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If i understand right... Create an emtpy index.html and place it in your folder. now they/you should only see a blank page.
     
    TheDutchMan, Dec 11, 2007 IP
  3. geekology

    geekology Well-Known Member

    Messages:
    545
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Thanks DutchMan, I got the solution... we need to include options -indexes in the .htaccess file
     
    geekology, Dec 12, 2007 IP