htmllocalserver

How can i intentionally access the "Index of /" page on my local server?


So i use a localserver to run a webpage on my local machine - which works fine. But how can i access the parent folder which shows all files saved on that local server? Like the "Index of/" page that gets loaded when you don't have an index.html on your webhost. One time i somehow got to this "Home Panel" of the localserver, but i don't remember how. Thank you!

Here's an image!

Image 2!

Image 3


Solution

  • Your question isn't clear, if you want to show another first directory instead of index.html you can set this with a document ".htaccess" but honestly this isn't often necessary, if you see some sites that show the first page as "home" you can achieve this by "friendly url" by using .htacess and php, (there is another ways but this is the most common) this sites have as well the index but this first file just is used to load the others, pls show some example of what you really want, that if that's the case I can provide the code to you.

    you can read a little more about the ".htaccess" here https://www.getfilecloud.com/blog/htaccess-for-beginners/

    [UPDATE] This is my localhost accessing a subfolder without a index.html enter image description here