Index.php returns 404 but test PHP files work

Website URL

https://bharatzing.kesug.com/

Error Message

Sorry, the page you are looking for does not exist

Other Information

Hello Support Team,

My website is https://bharatzing.kesug.com/

The file index.php returns a 404 error, but home_test.php and index_test.php work correctly.

The old homepage opens from index.html. My index.php file is in the htdocs directory and is about 11 KB.

I tested renaming index.php to other filenames, but those files also returned 404.

There is no .htaccess file in htdocs. The domain directory shows bharatzing.kesug.com/htdocs, and Health Check says “No issues found”.

Please help me find out why my main PHP homepage returns 404 while the test PHP files work.

Thank you.

Welcome to the InfinityFree community forum! Good to have you here.

  • Most people answering here are volunteers. They’re often the fastest source of help. Admin (the only staff member) checks in about once a day for issues on our end.
  • Volunteers can’t see your account or website. Share what you actually see, like error messages and what happens when you try something. That’s more useful than your theory of what’s wrong.
  • AI tools often get InfinityFree wrong. If a volunteer’s advice differs from what an AI told you, please try the volunteer’s suggestion first.
  • Solving an issue is a joint effort. Try the suggestions you get and report back what happened.

Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.

I think the 404 may come from your index.php itself rather than from our server. The same file, renamed, gives the same error, while home_test.php and index_test.php work. That points at what’s inside the 11 KB file, not at where it sits.

Two questions will tell us which it is:

  1. When you open the broken page, does the browser stay on bharatzing.kesug.com, or does it redirect to infinityfree.net/errors/404/?
  2. If you search index.php for the text “Sorry, the page you are looking for does not exist”, do you find it? Is the file a framework or router script that shows its own “not found” page when it doesn’t recognise the request path?

Our knowledge base describes the redirect to the InfinityFree 404 page, and the usual reasons a file isn’t found. Those are a wrong folder, wrong capitalisation, or .htaccess rules. A file that exists directly in htdocs and has a working PHP sibling doesn’t fit those.

This article explains how that 404 page works:


seems to be working now.

It was likely just a propergation issue