Not displaying the webpage instead it display the script in the folder

I am working on Xampp localhost. Ihave my script installed but when i try to access the webpage for example http://localhost/myscripfolder inside htdocs, it display all the folders and files inside the project folder

Index of /mywebsite

I am expecting to be able to access the website through the url localhost/myscriptfolder.

but it doenot work.

Instead, It diplay all the folders and files inside the main project folder