# Directory Showing

**URL:** <https://forum.infinityfree.com/t/directory-showing/10536>\
**Category:** Hosting Support\
**Created:** [November 27, 2018, 2:22pm UTC](https://forum.infinityfree.com/t/directory-showing/10536 "2018-11-27T14:22:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![atharva11](https://forum.infinityfree.com/letter_avatar/atharva11/32/6_22734026db12803ebb3e059622ac3534.png) [@atharva11](https://forum.infinityfree.com/u/atharva11)\
**Post date:** [November 27, 2018, 2:22pm UTC](https://forum.infinityfree.com/t/directory-showing/10536/1 "2018-11-27T14:22:31Z")

</div>

Hello, after i publish My Website it says congradulation your site is published. but it doesn’t load my page it loads infintyfree congradulation page again and again. In that page it opens from htdocs and i delete it from there and publish the web again but now it sais “Directory listing” and shows the htdocs folder contains. So what should i do to Solve this problem

I saw your reply (You need a file called index.php or index.html which has your main page. Called the file anything else means it will not be recognized as the main file of the folder )  
but i do not understand, Could you please help me by steps because i am not a programmer and i tried to understand what did you mean but i didnt, Please Help  
Thank You

---

<div class="post-metadata">

**Author:** ![atharva11](https://forum.infinityfree.com/letter_avatar/atharva11/32/6_22734026db12803ebb3e059622ac3534.png) [@atharva11](https://forum.infinityfree.com/u/atharva11)\
**Post date:** [November 27, 2018, 2:23pm UTC](https://forum.infinityfree.com/t/directory-showing/10536/2 "2018-11-27T14:23:03Z")

</div>

i dont want to show them directory list simply directly the website

---

<div class="post-metadata">

**Author:** ![MrJunior](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/mrjunior/32/41_2.png) [@MrJunior](https://forum.infinityfree.com/u/MrJunior)\
**Post date:** [November 27, 2018, 2:28pm UTC](https://forum.infinityfree.com/t/directory-showing/10536/3 "2018-11-27T14:28:37Z")

</div>

Website URL, please?

---

<div class="post-metadata">

**Author:** ![anon55589970](https://forum.infinityfree.com/letter_avatar/anon55589970/32/6_22734026db12803ebb3e059622ac3534.png) [@anon55589970](https://forum.infinityfree.com/u/anon55589970)\
**Post date:** [November 27, 2018, 2:33pm UTC](https://forum.infinityfree.com/t/directory-showing/10536/4 "2018-11-27T14:33:05Z")

</div>

Let’s just say that the naming convention of `index` was accepted by most people years ago as “the first thing a computer should look at”.

Which means, if there was **no** index.html, index.php, index.aspx, or anything that is called `index`, the computer is simply confused, and giving feedback as directory listing.

To prevent this, there are two easy ways:

- create an `index.html` by yourself, or
- implementing this one liner `Option -Indexes` to your `.htaccess` file.

But I would like to suggest you to do the first point. It’s like mandatory file for websites.

---

<div class="post-metadata">

**Author:** ![MrJunior](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/mrjunior/32/41_2.png) [@MrJunior](https://forum.infinityfree.com/u/MrJunior)\
**Post date:** [November 27, 2018, 2:56pm UTC](https://forum.infinityfree.com/t/directory-showing/10536/5 "2018-11-27T14:56:41Z")

</div>

@Joo\_Nath  
Hosting takes `index` just because of

```auto
DirectoryIndex index.php index.html index2.html

```

in .htaccess. Anyone is able to change indexes to their websites.

Also not every hosting shows the directory listing, it depends on configuration and engine.

`Option -Indexes` returns will return 403 Forbidden for any folder that has no index and being requested.

We should make sure that atharva11 uploaded the files at least, not sure about what problem this user facing.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [November 27, 2018, 6:21pm UTC](https://forum.infinityfree.com/t/directory-showing/10536/6 "2018-11-27T18:21:20Z")

</div>

Simple: you need to have a file which is called `index.html`. The file needs to be called exactly that. If it’s called `home.html`, `InDeX.html` or `index-123.html`, it will not be recognized as the main page of the folder.

I checked your account and you have a file called `index (2).html`. If you want it to be loaded as the main page, you need to rename it to `index.html`.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [July 27, 2019, 9:31am UTC](https://forum.infinityfree.com/t/directory-showing/10536/7 "2019-07-27T09:31:07Z")

</div>

Closed on July 27, 2019, 9:31am UTC


