directory not show in website

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Noorain
    New Member
    • Mar 2008
    • 57

    directory not show in website

    i have some file which contain in directory(downl oad).
    i link some file with this directory.

    for example:
    i visit http://websitename.com/download/a.pdf
    its show. but when i type http://websitename.com/download in addressbar then its go to this link http://websitename.com/ don't show download directory and its contain files.

    please help me how to do thsi

    thanks
  • canabatz
    New Member
    • Oct 2008
    • 155

    #2
    it's probably security problem.

    it can be .htaccsee to take you back to the default index.php if he cannot find any thing, or directory permission is not allowing you to see the content of the directory.

    you should echo the file path in a loop if there is more files to download.

    hope it helps.

    Comment

    • omerbutt
      Contributor
      • Nov 2006
      • 638

      #3
      my be directory listing is denied and then redirected towards he home page
      regards ,
      Omer Aslam

      Comment

      • johny10151981
        Top Contributor
        • Jan 2010
        • 1059

        #4
        agreed with Omerbutt and Canabatz, showing directory listing is not a very good idea, it can create security hole.

        you better write a script and show the list in a technical way so that user cannot see from what location you are downloading

        Comment

        Working...