Website Shows "Index of /" Instead of Your Site

Instead of your homepage, visitors see a plain list of files and folders titled "Index of /" — often just a lonely cgi-bin folder. The server is working, but it cannot find the file that is supposed to be your homepage.

Common signs of this issue

Safe checks you can do yourself

None of these require sharing passwords with anyone.

What this usually means

When someone visits your domain, the web server looks in one specific folder for a file with an agreed name — normally index.html or index.php. If that file is there, it shows your homepage. If it is not, and the server is set to allow it, it falls back to listing whatever is in the folder. "Index of /" is that fallback. The server is up and the domain is pointing somewhere real — it just is not finding your homepage where it expects.

The usual causes are mundane: files uploaded into a subfolder instead of directly into public_html, a homepage file that was renamed or deleted, a domain pointed at the new host before the website was copied over, or an addon domain aimed at an empty folder. A lone cgi-bin folder is the giveaway for an empty account — cPanel creates that folder by default, so seeing only it means nothing else was ever uploaded there.

It is rarely a hack, but it is worth one quick look. If you recognise every file in the list and your homepage file is simply missing, it is almost certainly an upload or configuration mistake. If the folder contains files you have never seen, or your index file was replaced with something strange, treat it as a possible compromise and read the hacked-site guidance before changing anything.

What not to do

When to get help

If the file list shows your site but nothing you rename or move brings it back, or you are mid-migration and are not sure whether the problem is the files, the folder, or where the domain points, it is worth having someone look for twenty minutes rather than experimenting on the live account. That is especially true for WordPress sites, where the files and the database both have to be in the right place and connected — getting the files visible is only half the job. Help is also sensible if the listing contains files you do not recognise, since that shifts the question from a setup mistake to a possible security problem.

Not sure what to do next?

Answer a few short questions and we'll point you to the safest next step — DIY, a freelancer, or a direct review. No passwords required.

Is this a business website? If this issue may be costing you leads, sales, or trust, you may want a direct review instead of trial and error.

Frequently asked questions

What does "Index of /" mean on my website?

It means the web server looked in your site's folder for a homepage file, such as index.html or index.php, did not find one, and showed a list of the folder's contents instead. The server works; the homepage file is missing, misnamed, or in the wrong folder.

Why does my website only show a cgi-bin folder?

cgi-bin is a folder that cPanel hosting creates automatically. If it is the only thing listed, the folder your domain points to is empty — the site was never uploaded there, was uploaded to a different folder, or the domain points to a new host before the files were moved.

I uploaded my files. Why is it still showing Index of?

Most often the files went into a subfolder, so the homepage sits one level too deep, or the homepage file is not named index.html or index.php in lowercase. Open your web root in the file manager and check that the homepage file sits directly inside it.

Is a directory listing a security risk?

It can be. Anyone can browse the listed files, including backups, old versions, or documents you did not mean to publish. Once your homepage is back, ask your host or developer to switch off directory listings for the account.

Why do I see a "Coming soon" page instead of my site?

That is a placeholder from your registrar or new host. Either the domain is pointed at the placeholder rather than your hosting, or the host's default page file is sitting in your web root. Point the domain correctly and remove the default file once your own site is in place.

Could this mean my site was hacked?

Usually not — it is normally an upload or setup mistake. But if the list contains files you have never seen, or your homepage file was replaced with something odd, treat it as a possible compromise and investigate before restoring anything.

Related free guides

WordPress site down?

Seeing “There has been a critical error on this website”?

Our guided repair tool logs in over secure FTPS and fixes the most common WordPress failures — safely, with every change backed up and reversible. Start with a free scan, no password needed.

Fix My WordPress Site → Free scan · No download of your site · Reversible