Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Setup & site building · Guide

How to Find 404 Page in WordPress (Step by Step)

How to Find 404 Page in WordPress (Step by Step)

Short answer

To see the 404 page, visit a made-up address on your site. To edit it, open Appearance, then Editor, then Templates in a block theme, or the 404 template file inside a classic theme folder. To find the broken URLs behind it, check Google Search Console or a 404 logging plugin.

Key takeaways

  • The 404 page is a theme template, not a normal page.
  • Block themes keep it under Appearance, Editor, Templates.
  • Classic themes use a 404.php file in the theme folder.
  • Search Console and Redirection show which URLs return 404.
  • Redirect old content URLs with a 301, not to the home page.

How do you find the 404 page in WordPress?

Visit any made-up address on your site to see the 404 page, then open its template in Appearance, Editor for block themes or in the theme's 404.php file for classic themes.

People mean two different things when they ask this. Some want to see or edit the error page that visitors get. Others want to find the broken URLs that are sending people to that page.

This guide covers both. The first half shows where the 404 template lives. The second half shows how to track down the links and pages that trigger it.

What is a 404 page in WordPress?

A 404 page is the screen WordPress shows when someone requests an address that does not match any post, page, file or archive on your site.

The number comes from the HTTP status code 404 Not Found. The MDN reference for the 404 status explains that the server could not find the requested resource.

WordPress does not store the 404 page as a normal page under Pages. It is built from a theme template, so you will not find it in your list of pages.

That is why many site owners think their site has no 404 page. It does, but it lives inside the theme.

How do you see your 404 page on the front end?

Type your domain followed by a random path, such as /this-page-does-not-exist/, and WordPress will load the 404 page your theme provides.

Use a slug that you are sure does not exist. A random string of letters works well.

Open the address in a private browser window too. Some themes and plugins show different content to logged-in users, and a private window shows what a visitor sees.

If you see your home page instead of an error, something is redirecting all missing pages. That is covered later in this guide.

Where is the 404 template in a block theme?

In a block theme, go to Appearance, then Editor, open Templates, and select the template named Page: 404 or 404 to view and edit it.

Block themes such as Twenty Twenty-Four and Twenty Twenty-Five ship with a 404 template. You edit it with blocks, just like a post.

The steps look like this:

  1. In the dashboard, go to Appearance, then Editor.
  2. Click Templates.
  3. Find the 404 template in the list and click it.
  4. Click the pencil or Edit button to change the heading, text, search block or links.
  5. Save your changes.

Your edits are saved in the database, not in the theme files. That means a theme update will not overwrite them.

If you want a deeper look at how these templates work, read our explainer on what a block theme is.

Where is the 404 template in a classic theme?

In a classic theme, the 404 page comes from a file called 404.php inside the theme folder, found at wp-content/themes/your-theme/.

The WordPress template hierarchy explains the lookup. When a request returns no content, WordPress loads 404.php. If that file is missing, it falls back to index.php.

You can open the file in three ways:

  • Theme File Editor under Appearance (or Tools on block themes), if your host has not disabled it.
  • File Manager in your hosting control panel.
  • SFTP with a client such as FileZilla.

Do not edit 404.php directly in a parent theme. Copy it to a child theme first, or your changes disappear when the theme updates. Our guide on what a child theme is explains why.

What if your theme has no 404 template?

If the theme has no 404 template, WordPress uses the index template instead, so visitors see a plain or generic page with little helpful content.

You can fix this in a few ways. In a block theme, add a new template for the 404 page from the Templates screen.

In a classic theme, create a 404.php file in a child theme. A simple version can call get_header(), print a short message with a search form, and call get_footer().

Page builders such as Elementor Pro and some theme kits also let you design a 404 template with their own theme builder. Check your builder's documentation for the exact menu.

How do you change what the 404 page says?

Edit the 404 template in the Site Editor or in a child theme's 404.php, adding a clear message, a search box and links to popular content.

A good 404 page keeps people on the site. It should explain that the page was not found and give them somewhere to go next.

Useful elements include:

  • A short, friendly heading.
  • A search form.
  • Links to your home page, blog and top categories.
  • A link to your contact page.

For the full design steps, see our guide on how to change the 404 page in WordPress.

How do you find the URLs that cause 404 errors?

Use Google Search Console's page indexing report, a 404 logging plugin such as Redirection, or your server's access logs to list the addresses that return 404.

Finding the template only solves half the problem. If people keep landing on the 404 page, you want to know which addresses they tried.

Here is how the main options compare:

MethodWhat it showsBest for
Google Search ConsoleURLs Google found that return 404Broken URLs that matter for search
Redirection plugin 404 logEvery 404 request on your site, with referrerReal visitor traffic
Server access logsRaw requests with status codesDevelopers and large sites
Broken link checkerLinks inside your content that point to dead pagesCleaning up your own posts

Most small sites do well with Search Console plus one logging plugin.

How do you find 404 errors in Google Search Console?

In Search Console, open Indexing, then Pages, and look for the reason Not found (404) to see the affected URLs that Google tried to crawl.

Google explains this report in its Page indexing report help page. Click the 404 row to see example URLs and when Google last crawled them.

Not every 404 here is a problem. Google often tries old or mistyped URLs. Focus on addresses that used to have content or that other sites link to.

If you have not connected your site yet, follow our guide on how to connect Google Search Console to WordPress.

How do you log 404 errors with a plugin?

Install a plugin such as Redirection, turn on its 404 logging, and check the 404s screen to see each missing URL, how often it was hit and where the visitor came from.

The free Redirection plugin keeps a log of 404 requests once logging is enabled in its options. You can create a redirect straight from a log entry.

Keep an eye on log size. Busy sites can collect thousands of entries, so set the plugin to delete old logs after a set number of days.

Ignore obvious junk. Bots often probe for files like wp-login backups or old scripts. Those 404s are normal and do not need redirects.

Our walkthrough on using the Redirection plugin covers the setup in more detail.

What should you do with the 404 URLs you find?

Redirect URLs that used to hold content to the closest matching live page with a 301, fix internal links that point to them, and leave genuine junk URLs as 404s.

A 301 redirect sends visitors and search engines to the new address. Google's guidance on redirects and search explains that a permanent redirect passes signals to the new URL.

Do not send every 404 to the home page. Google may treat that as a soft 404, and visitors get confused when they land somewhere unrelated.

For links inside your own content, update the link itself rather than adding a redirect. Our guide on how to find broken links in WordPress shows how to scan your posts.

Why are your real posts showing the 404 page?

If existing posts suddenly return 404, the usual cause is broken rewrite rules, which you can often fix by going to Settings, then Permalinks, and clicking Save Changes.

Saving the Permalinks screen flushes the rewrite rules without changing your URL structure. This fixes many 404s that appear after a migration or plugin change.

If that does not work, check the .htaccess file on Apache servers or the server rules on Nginx. A missing or damaged rule set stops pretty permalinks from working.

Our guide on how to fix 404 errors on posts walks through every cause, from permalinks to server settings.

Frequently asked questions

Why can't I find the 404 page under Pages?

WordPress builds the 404 page from a theme template, not from a page stored in the Pages list. Look under Appearance, then Editor, then Templates for block themes, or find the 404.php file in the theme folder for classic themes.

Can I make a normal page my 404 page?

Not with core WordPress alone. Some plugins let you choose an existing page to display for 404 errors while keeping the correct 404 status code. Make sure any plugin you use still returns a real 404 status rather than a 200, or search engines may index the error page.

Will a theme update erase my 404 changes?

Changes made in the Site Editor are saved in the database, so theme updates do not remove them. Edits made directly to 404.php in a parent theme are overwritten on update, so put file changes in a child theme instead.

Are 404 errors bad for SEO?

A 404 for a page that never existed is normal and does not hurt your site. The problem is losing traffic and links when real content disappears. Redirect removed pages that had visitors or backlinks to the closest relevant page.

How often should I check for 404 errors?

Checking once a month suits most sites, plus after any migration, redesign or permalink change. Busy stores and news sites may want weekly checks using a logging plugin, since broken product or article URLs cost sales and visits quickly.

Sources

  1. Template Hierarchy WordPress Developer Resources
  2. 404 Not Found MDN Web Docs
  3. Page indexing report Google Search Console Help
  4. Redirection WordPress.org Plugins
  5. Redirects and Google Search Google Search Central

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.