Hiding Directories

Discussion in 'HTML & Website Design' started by AnotherRob, Jun 10, 2011.

  1. #1
    On my site if a user goes to http://www.targacars.co.nz/rot11/rot11cat2.html and then deletes "rot11cat2.html" in the search bar then presses Enter he/she gets an index of /rot11 plus all the other files that are on the server. Is there a way of hiding the directories and making the user go to http://www.targacars.co.nz/rot11/indexrot11.html
     
    AnotherRob, Jun 10, 2011 IP
  2. Podnimator

    Podnimator Peon

    Messages:
    29
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    .htacces file in this directory

    <FilesMatch "\.(php|cgi|pl|php3|php4|php5|php6|phps|phtml|shtml)$">
    Order allow,deny
    Deny from all
    </FilesMatch>
     
    Podnimator, Jun 11, 2011 IP
  3. AnotherRob

    AnotherRob Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for your reply. But at this stage your relpy is above my head. So I have a few more questions

    1)When I did a google search it wanted ".htaccess" not ".htacces", is this jst a typo ?

    2)EXACTY where do I place the code

    3)Please explain what the code , I have made a quess but I would like to know for sure

    Thanks again
     
    AnotherRob, Jun 11, 2011 IP