Index of / WordPress Origin: Application & API OSI layer 7 · Application Last updated 13 Oct 2026

WordPress site shows "Index of /" (directory listing instead of the site)

The web server isn’t using index.php as the directory index, or index.php is missing — so it lists files instead of running WordPress.

Exact message you may see directory listing wordpressParent Directory wp-admin wp-content wp-includes
Seen on: WordPress

Meaning

After migrations, index.php may not be uploaded, or Apache DirectoryIndex/Nginx index directives don’t include index.php. PHP not configured for the vhost can also lead to downloads or listings.

Common causes

  • index.php missing from the web root
  • DirectoryIndex/index directive lacks index.php
  • Document root points to a parent folder
  • PHP handler not configured

⚡ Quick fix

  1. Upload WordPress’s index.php
  2. Add index.php to DirectoryIndex/index
  3. Disable directory listing (Options -Indexes / autoindex off)

Detailed fix by platform

Apache

  1. apache
    DirectoryIndex index.php index.html
    Options -Indexes

Nginx

  1. nginx
    index index.php index.html;
    autoindex off;

How to diagnose

  1. Files — index.php present?
  2. Config — Index directives
  3. Root — Correct folder?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Application & API. Errors that are often confused with or caused by this one (click to open):

1000 — Cloudflare Error 1000: DNS points to prohibited IP (Cloudflare)10001001 — Cloudflare Error 1001: DNS resolution error (Cloudflare)10011002 — Cloudflare Error 1002: DNS points to Prohibited IP / Restricted (Cloudflare)10021004 — Cloudflare Error 1004: Host Not Configured to Serve Web Traffic (Cloudflare)10041018 — Cloudflare Error 1018: Could not find host (Cloudflare)10181034 — Cloudflare Error 1034: Edge IP Restricted (Cloudflare)10341046 — MySQL ERROR 1046 (3D000): No database selected (MySQL)10461049 — MySQL ERROR 1049 (42000): Unknown database 'x' (MySQL)1049Index of /

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.