# 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:** 1\
**Showing post:** 10

<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.

---

_[View the full topic](https://forum.infinityfree.com/t/it-shows-error/73058)._
