Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2004
    Location
    Athens, Greece
    Posts
    40
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Directory problem

    (Sorry if I post on the wrong forum)

    I have a site www[dot]mysite[dot]com and a directory in it "folder" for example.
    When I browse the address www[dot]mysite[dot]com/folder/ I see the content of the entire directory.
    Why is that?

    I do not want this directory contents to be public.
    Last edited by martha; 05-13-2007 at 08:34 PM.

  • #2
    Senior Coder
    Join Date
    Apr 2007
    Location
    Quakertown PA USA
    Posts
    1,028
    Thanks
    1
    Thanked 125 Times in 123 Posts
    there are several solutions:

    For one, create an empty file - index.htm and upload it to your folder directory.

  • #3
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,046
    Thanks
    19
    Thanked 42 Times in 42 Posts
    Quote Originally Posted by PappaJohn View Post
    there are several solutions:

    For one, create an empty file - index.htm and upload it to your folder directory.
    or a index.php file and use header("Location: /displayme.htm"); to redirect to the page you want to be showing


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •