It shows error

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

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

Screenshot 2023-03-03 115525

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)

#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



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

https://tinkertechlab.com/webhosting/security/how-to-clear-your-browsers-cache

8 Likes