# It shows error

**URL:** <https://forum.infinityfree.com/t/it-shows-error/73058>\
**Category:** Hosting Support\
**Created:** [March 2, 2023, 3:10pm UTC](https://forum.infinityfree.com/t/it-shows-error/73058 "2023-03-02T15:10:25Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon26077762](https://forum.infinityfree.com/letter_avatar/anon26077762/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon26077762](https://forum.infinityfree.com/u/anon26077762)\
**Post date:** [March 2, 2023, 3:10pm UTC](https://forum.infinityfree.com/t/it-shows-error/73058/1 "2023-03-02T15:10:25Z")

</div>

Please am new here, my hosted account at [camangles.42.web.io](http://camangles.42.web.io) when i put it on the server it shows error 404 page not found. Please what could be the issue

---

<div class="post-metadata">

**Author:** ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)\
**Post date:** [March 2, 2023, 3:40pm UTC](https://forum.infinityfree.com/t/it-shows-error/73058/2 "2023-03-02T15:40:47Z")

</div>

Hi and welcome to the forum

The correct address is this (no extra dot) `camangles.42web.io`

Did you accidentally delete the` htdocs` folder?  
or you don’t have [an index file](https://forum.infinityfree.com/t/49317)?

> [@What is a Hosting Volume](https://forum.infinityfree.com/t/49222):
>
> In your control panel, you will see that your website is associated with a certain Hosting Volume. In some communication regarding outages, you will also see that there may be issues with certain hosting volumes. This article will try to clarify what a Hosting Volume is, and what it does and doesn’t mean for an account. What does a Hosting Volume do Websites hosted on InfinityFree are running on a custom built cloud hosting platform. This cloud platform uses a network of servers for every webs…

---

<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:** [March 2, 2023, 4:47pm UTC](https://forum.infinityfree.com/t/it-shows-error/73058/3 "2023-03-02T16:47:16Z")

</div>

The files of your website to into the `htdocs` directory of your account, not the root account. If you delete the htdocs directory, your website will only show 404 error pages.

Please delete all the files and directories you created in the root folder, create a new folder with the name `htdocs`, and upload your website files to it.

---

<div class="post-metadata">

**Author:** ![anon26077762](https://forum.infinityfree.com/letter_avatar/anon26077762/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon26077762](https://forum.infinityfree.com/u/anon26077762)\
**Post date:** [March 2, 2023, 6:53pm UTC](https://forum.infinityfree.com/t/it-shows-error/73058/4 "2023-03-02T18:53:40Z")

</div>

Please i have been able to delete my files and create them inside htdocs… The website now opens without the 404 error but shows directory listing of all the files instead of the website itself

---

<div class="post-metadata">

**Author:** ![anon26077762](https://forum.infinityfree.com/letter_avatar/anon26077762/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon26077762](https://forum.infinityfree.com/u/anon26077762)\
**Post date:** [March 2, 2023, 6:54pm UTC](https://forum.infinityfree.com/t/it-shows-error/73058/5 "2023-03-02T18:54:45Z")

</div>

Thank you, having a directory listing of my files  
now instead of the website

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [March 2, 2023, 7:54pm UTC](https://forum.infinityfree.com/t/it-shows-error/73058/6 "2023-03-02T19:54:12Z")

</div>

Now upload (or move) your websites files into that folder.

---

<div class="post-metadata">

**Author:** ![anon26077762](https://forum.infinityfree.com/letter_avatar/anon26077762/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon26077762](https://forum.infinityfree.com/u/anon26077762)\
**Post date:** [March 2, 2023, 9:31pm UTC](https://forum.infinityfree.com/t/it-shows-error/73058/7 "2023-03-02T21:31:39Z")

</div>

They are all in the htdocs folder when i launch the website it shows like in the picture, directory listing with all the files in the htdocs

 ![WhatsApp Image 2023-03-02 at 22.26.08](https://forum-cdn.infinityfree.net/original/3X/2/7/27f6274ef08d79b131d03ae33f63f6bf7d68ef9e.jpeg)

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [March 3, 2023, 12:26am UTC](https://forum.infinityfree.com/t/it-shows-error/73058/8 "2023-03-03T00:26:28Z")

</div>

You are missing your index page. Make sure all the files are uploaded.

If `home.php` is what is supposed to show when the site is loaded, you will need to rename it to `index.php`

---

<div class="post-metadata">

**Author:** ![anon26077762](https://forum.infinityfree.com/letter_avatar/anon26077762/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon26077762](https://forum.infinityfree.com/u/anon26077762)\
**Post date:** [March 3, 2023, 8:35am UTC](https://forum.infinityfree.com/t/it-shows-error/73058/9 "2023-03-03T08:35:58Z")

</div>

I did so, but it shows a blank white page.  
Please what do should i do thanks

---

<div class="post-metadata">

**Author:** ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)\
**Post date:** [March 3, 2023, 10:58am UTC](https://forum.infinityfree.com/t/it-shows-error/73058/10 "2023-03-03T10:58:03Z")

</div>

Everywhere in your menu there is old code that leads to `home.php`

 ![Screenshot 2023-03-03 115044](https://forum-cdn.infinityfree.net/original/3X/7/7/779bae2f8f886741db1ae5773fa73a01026fa97e.png)

and since you renamed home.php to index.php, that file cannot be found

 ![Screenshot 2023-03-03 115525](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/e/2/e21b7cd770cce064675e673bb80d6f1cd8f423ec.png)

FIX

Create a .htaccess file inside the htdocs folder

if you already have it  
put this code at the beginning (open/edit with file manager - monstaFTP)

```auto
#Start here
DirectoryIndex home.php

```

so you tell the server what to serve as the starting file (when, for example, someone visits only the domain  
`http://camangles.42web.io/`)

Note - also delete the existing code (line) if it exists and starts with `DirectoryIndex xy xy xy`

then

rename index.php to home.php

* * *

> [@How to set custom .htaccess rules](https://forum.infinityfree.com/t/49350):
>
> .htaccess rules are a powerful way to control how your website behaves. It can be used to set pretty URLs, define error pages, restrict access and more. There are plenty of guides available to teach you everything that can be done with .htaccess. This article can’t explain everything you can do with .htaccess rules, but it does explain how you can add them. Create the .htaccess file in your htdocs directory Every domain name on your account has a htdocs directory. Your first domain is attached…

  

Then

Clear the browser cache by pressing a few times Ctrl + F5 while viewing your website.  
If that doesn’t help (because some browsers are stubborn) then follow these instructions

> **[How to clear your cache (And cookies) on any browser - A simple guide - The...](https://tinkertechlab.com/webhosting/security/how-to-clear-your-browsers-cache)**
>
> Need to clear your browsers cache? This guide shows you how to do it in all major desktop and mobile browsers.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [March 10, 2023, 10:58am UTC](https://forum.infinityfree.com/t/it-shows-error/73058/11 "2023-03-10T10:58:05Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
