Skip to main content

when going to http://IP/~xyzxyzxyz/ not shown the file/folder structure but not found webpage?

Comments

12 comments

  • quietFinn
    My guess is that you webpage is in the blog folder
    0
  • cPRex Jurassic Moderator
    That would also be my guess - it has to be loading the content from somewhere, so it's likely the /blog directory.
    0
  • lse webmaster
    Yes, but the problem is shown folders and files, if having index.php or index.html there is no problems, how to setup Apache or .htaccess or php if i access a directory not showing results of directory but rather not found page or 404.php page... I had knew to do thus, but have been forgotten... since... any suggestions how, if no route see not found apache errors rather than folders/files structures and names?
    0
  • quietFinn
    Put Options -Indexes in .htaccess
    0
  • lse webmaster
    .htaccess only one file in root /.../public_html/ And For not listed files But rather see errors not found or setup the 404.php page, correct?
    0
  • quietFinn
    In this kind of situations I always SSH to the server, go to the public_html folder in question, and do: touch index.html For my opinion, if someone goes to the site it's better they don't see anything, not even an error message.
    0
  • lse webmaster
    Yes, but if web app has 300 folders/subfolders...?
    0
  • quietFinn
    These is index.php or index.html in every folder, or if not then it's a lousy app :rolleyes:
    0
  • lse webmaster
    No, there is a setting in LAMP Server that makes this (but got foget it), you don't need index.php or index.html... in every folder,... I will search soon, online to find it
    0
  • cPRex Jurassic Moderator
    Changing the Indexes option like @quietFinn mentioned will display the directory listing.
    0
  • lse webmaster
    Yes, did this - disable indexes checkbox - from my VPS WHM/cPanel, and now removed the dir file system shown
    0
  • cPRex Jurassic Moderator
    I'm glad that worked well!
    0

Please sign in to leave a comment.