Default document exposed in URLs

How the scan finds links and canonical tags that name index.html or index.php, why it warns, and how to point them at the clean address.

What AuditX checks

The scan reads the canonical tag and the internal links of the pages it crawled, so this check sends no extra request. Each address is resolved against the page it came from. An address is flagged when its path ends in /index.html, /index.htm, /index.php, /default.aspx, /default.asp, /home.html or /home.htm, ignoring capitals. The file name must be the last part of the path, so /docs/index.html is flagged as well as /index.html. Addresses that carry a query string, such as /w/index.php?title=Home, are skipped, because many systems route every request through index.php on purpose. The same address is only counted once, however many pages link to it. The check warns when at least one is found; the message gives the count and names up to 5. Otherwise it passes. If the crawl did not complete, the result is an info note, which does not lower the score, marked as not measured, and a security score that has any check not measured cannot go above 79. The scan does not request the flagged addresses, so it does not know whether both versions of the page load or whether the server redirects one to the other. A page that is really named home.html is flagged too. The warning is a small hygiene point, not a sign of a break-in.

Why it matters

Google Search Central explains that the same page reachable at more than one address is duplicate content, and that you should point links and canonical tags at the one address you want shown. /index.html and / are such a pair.

OWASP Web Security Testing Guide notes that file names and extensions in URLs help someone work out which server software is behind a site. A clean address leaves less to read.

How to fix it

  1. Change internal links that end in /index.html, /index.php or similar so they point at the folder, for example "/" or "/services/".
  2. Make the canonical tag of each page use the same clean address.
  3. Add a permanent redirect (301) from the file address to the clean address in the server, so old links and bookmarks still work.
  4. Check menus, footers, logos and old blog posts, which often still carry the old link.
<a href="/">Home</a>
<link rel="canonical" href="https://example.com/">

Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.

Scan my site

Sources

Related checks

Last reviewed 2026-11-13.