Wordpress 404 Page



Adding a custom 404 page to your WordPress theme is simple. All you need to do is have a file named ’404.php’ in your theme directory. A 404 'Not Found' error page is a page generated by the server to inform you that the content you were trying to access on the website cannot be found. It usually occurs when a user clicks on a link to a missing page, the WordPress web hosting server will automatically send the user an error message, for example, “404 Not Found”. Your website by default has composed custom error messages that are in plain content. This leaves your visitors a slightly lost. A WordPress “404” error page is an actual page file that can be edited. It is typically included with most WordPress themes. You can find this page by logging into your server (e.g. Via FTP, cPanel, etc.) and looking for a page called 404.php located inside the wp-content themes name of theme folder (404.php file).

Page

Description

With 100,000+ active installations the 404page plugin is the most used plugin to create a customized 404 error page in WordPress.

Bringing visitors to your website takes time and effort. Every visitor is important. The default 404 error page of most themes do not provide any information on what to find on your site. A first tme visitor, who does not know you, is left in a dead end and leaves your website. Set up a helpful custom 404 error page to keep him on your site.

This handy plugin allows you to easily create your own 404 error page without any effort and it works with almost every theme.

Usage

Create your custom 404 error page just like any other page using the WordPress Page Editor. Then go to ‘Appearance’ -> ‘404 Error Page’ and select the created page as your custom 404 error page. That’s it!

Why use this plugin?

In class8th grade ela page. Different from other similar plugins the 404page plugin does not create redirects. That’s quite important because a correct code 404 is delivered which tells search engines that the page does not exist and has to be removed from the index.

Different from other similar plugins the 404page plugin does not create additional server requests.

Requirements

The only requirement for this plugin is that you change the Permalink Structure in ‘Settings’ -> ‘Permalinks’ to anything else but ‘Plain’. This also activates the WordPress 404 error handling.

Docs & Support

Videos

Compatibility

The 404page plugin was sucessfully tested by the author with the following themes

  • Customizr (Read more about Customizr Compatibility Mode)

The 404page plugin was sucessfully tested by the author with the following starter themes

The 404page plugin was sucessfully tested by the author with the following plugins

Wordpress
  • WP Super Cache (Read more about WP Super Cache Compatibility)
  • WPML WordPress Multilingual Plugin (officially approved by WPML team)

Wordpress 404 Page Template

For developers

Action Hook

The plugin adds an action hook 404page_after_404 which you can use to add extra functionality. The exact position the action occurs after an 404 error is detected depends on the Operating Method. Your function must not generate any output. There are no parameters.

Constant

If the 404page plugin is installed and activated it defines the PHP constant PP_404. Check existence of it to detect the 404page plugin.

Wordpress 404 Page Not Found

Functions

The Plugin provides the following functions:

  • pp_404_is_active() to check if there is a custom 404 page selected and the selected page exists
  • pp_404_get_page_id() to get the ID of the 404 page
  • pp_404_get_all_page_ids() to get an array of page IDs in all languages

Wordpress 404 Page

Native Mode

If you are a theme developer you can add native support for the 404page plugin to your theme for full control. Read more.

Do you like this plugin?

I spend a lot of my precious spare time to develop and maintain my free WordPress plugins. You don’t need to make a donation. No money, no beer, no coffee. If you like this plugin then please do me a favor and give it a good rating. Thanks.

Plugin Privacy Information

  • This plugin does not set cookies
  • This plugin does not collect or store any data
  • This plugin does not send any data to external servers
Wordpress 404 Page

ClassicPress

This plugin is compatible with ClassicPress.

More plugins from Peter

  • hashtagger – Use hashtags in WordPress
  • smart Archive Page Remove – Completely remove unwated Archive Pages from your Blog
  • smart User Slug Hider – Hide usernames in author pages URLs to enhance security

Stay up to date

Follow me on Facebook
YouTube Channel

FAQ

Will it work with the theme I’m using?

Wordpress 404 Page

This plugin is designed to work with as many themes as possible. It uses the WordPress Template System to detect and handle 404 errors. If your theme makes use of this Template System this plugin will work properly. If it does not the plugin offers a so called Compatibility Mode, which uses its completely own method to detect and handle 404 errors. If this plugin does not work properly, try to activate Compatibility Mode.

Are 404 errors redirected?

No, there is no redirection! The chosen page is delivered as a ‘real’ 404 error page. This results in a HTTP 404 code and not in 301 or 302, which is important for Search Engines to tell them, that the page does not exist and should be deleted from the index.

Is it possible to add custom CSS to the 404 page?

The 404page plugin adds a CSS class error404 to the <body> tag which can be used for extra styling.

Where can I get help?

Please use the Support Forum.

Reviews

Wordpress 404 Page Not Found

Strightforwards and easy to use and what I found the coolest useful is Peters explanations on the info buttons directly on the plugin advanced settings. Easy to set up and well explained so if you have to modify the advanced settings in the future, you will know what are you getting into. Thanks!
  • I just moved my website from an older GoDaddy hosting system to a new one, and now only the homepage works. All other pages result in a “404 File Not Found” error. I have absolutely no idea how to fix this….I followed the GoDaddy instructions on how to migrate a website 100% exactly, so don’t even know where this problem is!

    I would appreciate any solutions, especially super easy, non-technical solutions. 🙂 (ie. “Dummy’s version”!)

    Thanks in advance.
    Janine

    The page I need help with: [log in to see the link]

12→
  • Hi @jframst,

    This is common issue. You need to just save permalink structure and click on Save Settings buttons.

    It will work perfectly.

    I had the same problem, just saving the permalinks did not work…

    But when I changed the permalinks to standard – then saved it – then changed it back to the custom structure again, it did work!

    Hope this can help someone 🙂

    I have tried changing the permalinks with no success.

    Also tried to add in the htaccess file:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Still no success, even when I create a fresh page it comes back 404????

    Any help will be very appreciated.

    Can you please open a new topic for your question?

    Please also contact your hosting support to see if they can identify any issues first.

    I am facing same problem, I think the problem is with the .htaccess main file

    • This reply was modified 1 year ago by .

    The reasons for this can be varied. Advisable to try rebuilding permalinks, rebuilding httaccess rules and/or checking for plugin conflict. Your host should also be able to advise of any server level issues – but the problem is rarely ever related to the theme.

    after 2 long days, the sloution was to add
    options +FollowSymLinks
    to your .htaccess file

    I am facing the same problem.
    except Home page all pages are showing error
    I even tried that permalink and htaccess file but then also I am facing the same problem

    please some help me with these or contact me on archiesksingh@gmail.com

    Hi there,

    we cannot provide email support.
    Have you checked with your host to see if they can spot a problem ?

    Hello there,

    I am facing the same problem and there is nothing wrong with my server.Also I can login as admin but i can’t get to the dashboard page. Everytime I click on the dashboard from the top of my homepage, it refresh the homepage and stay in homepage.

    I tried to delete the htaccess file but it doesn’t work.

    Hi there,

    the Theme has no control over permalinks or redirects. This sounds like a server level issue. I would recommend speaking to your hosting provider to look at any error logs to find out what the issue is.

12→