SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Nov 2000
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello ALL!

    I noticed that if a web address on my site has a sub directory showing with a forward slash at the end it returns a list of that directory. Ex: www.test.com/subdir/

    How do I prevent that?
    Thank you for your time!
    Marc

  2. #2
    Sports Publisher mjames's Avatar
    Join Date
    Jan 2000
    Location
    Charlotte, NC
    Posts
    5,891
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You will probably need an index.shtml so it doesn't show that. Besides that, you'll have to link to a specific file name to avoid the list.

  3. #3
    SitePoint Member
    Join Date
    Nov 2000
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by M. James
    You will probably need an index.shtml so it doesn't show that. Besides that, you'll have to link to a specific file name to avoid the list.
    I am not sure I understand. If it matters, the web is on a unix server, with frontpage 2k ext.

    What does index.shtml do? (For me and future newbies)
    What do you mean "link to a specific file"? (For me and future newbies)

    On some of my webs I get: 403 Forbidden
    You don't have permission to access /images/ on this server.

    On others it shows the dir...
    Last edited by reman; Apr 14, 2001 at 05:49.
    Thank you for your time!
    Marc

  4. #4
    mouse monkey
    Join Date
    Dec 1999
    Location
    UK
    Posts
    656
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    The server admin can set whether or not the server defaultly allows directory lists or not but I think this can be changed using the .htaccess file (sorry I don't have a link to a good tutorial on this). If the server is set not to allow directory lists you get the 403 forbidden error.

    The index.shtml (or index.htm, index.html etc.) is just the file the server defaulty loads in directories so if that is in a directory it will load that file instead of showing the directory listing. So if you just make a file blank html file and call it index.htm and put it in the directory which you don't want people to see the contents off it will load that file instead of showing everybody the contents of that directory.

    Sorry if I haven't explained this very well.

  5. #5
    SitePoint Member
    Join Date
    Nov 2000
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I will try to change the access to give the 403 error. But I see how the index.xxxx would work... in fact, you could redirect it to the home page also.

    I have not yet found a good tutorial on the .htaccess file
    Thank you for your time!
    Marc


Bookmarks

Posting Permissions

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