Why is my website returning 404 error?

Username (e.g. epiz_XXX) or Website URL

http://darkwizard-h.infinityfreeapp.com/index.php

Error Message

Failed to load resource: the server responded with a status of 404 ()

Other Information

EDIT: Adding: The part that does not load is the one that brings the information from the data base, may there be a problem in mysql?

This is for the favicon, which you have not set.

This is fine, and should not affect anything.
What should affect your website, however, is that for some reason your server returns a 500 error, but still serves your page (even without serving your page, this is bad):

3 Likes

in half lol
This should be the result of the Index:

infinityfree uses utf-8 encoding so make sure you save your files in this format and add to your head section

<head>
  <meta charset="UTF-8">
</head> 

clear the browser cache and see if it fixes the issue

1 Like

It’s already in utf-8 (head and file).

Adding: The part that does not load is the one that brings the information from the data base, may there be a problem in mysql?

2 Likes

Maybe. You will have to check your code to find it, however.

1 Like

My problem is that locally I don’t have this error :confused:

Got!!

Putting the code below made it clearer what the error was, thanks guys.

error_reporting(E_ALL);
ini_set('display_errors', 'On');
4 Likes

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