i am a new user o infinity free and i want to ask that anybody knows that how to disable directory listing from website
i am trying to remove it from my website but i failed to remove it
i want to open my website directly insted of viewing directory listing
You should upload your files inside htdoces. Also you’ve to create an index.html or index.php file.
Generally speaking, you can disable directory listing by:
- Making sure that every folder has a file called
index.php
orindex.html
. This can be a blank file, as long as the file exists. - Creating a file with the name
.htaccess
(or edit your existing one) and add the lineOptions -Indexes
.
If so, you probably don’t want to disable directory listing. Instead, you want to fix your website index file.
By default, the server looks for a file called index.php
or index.html
. If the server doesn’t find any of those, it will show a directory listing.
If you have a home page which you want to show instead, you should make sure the file is called index.php
or index.html
.
Also, please note that our servers (like almost all web hosting servers) are have case sensitive file and folder names. So if you have a file named Index.php
or index.HTML
, that won’t work.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.