ThimPressThimPress ThimPress
  • Themes
    • WordPress Theme
    • Shopify Theme
    • All Themes
  • Plugins
    • LearnPress
    • LearnPress Pro Bundle
    • LearnPress Semi-Pro Bundle
    • LearnPress Premium Add-ons
    • LearnPress Free Add-ons
    • LearnPress Mobile App
    • All Plugins
  • Blog
    • Best SEO Practice for Beginners
    • Internal link building tools
    • WordPress for Education
    • What are Sentiment Words
    • 20+ Free Shopify Themes
  • Coupons
  • Help Center
    • Support Forum
    • Ticket Center
    • Documentation
    • Knowledge Base
    • FAQs
    • Contact Us
  • Our Services
    • Customization
    • Maintainance
    • Hosting
    • Advertise
  • 0
  • Sign in
Back
  • Themes
    • WordPress Theme
    • Shopify Theme
    • All Themes
  • Plugins
    • LearnPress
    • LearnPress Pro Bundle
    • LearnPress Semi-Pro Bundle
    • LearnPress Premium Add-ons
    • LearnPress Free Add-ons
    • LearnPress Mobile App
    • All Plugins
  • Blog
    • Best SEO Practice for Beginners
    • Internal link building tools
    • WordPress for Education
    • What are Sentiment Words
    • 20+ Free Shopify Themes
  • Coupons
  • Help Center
    • Support Forum
    • Ticket Center
    • Documentation
    • Knowledge Base
    • FAQs
    • Contact Us
  • Our Services
    • Customization
    • Maintainance
    • Hosting
    • Advertise
  • Home
  • Blog

How to Detect & Redirect 404 page in WordPress

Blog - By Duke - September 5, 2023

Wondering how to find and fix the 404 Page error?

When you surf the Internet, you may see a page with the status 404 Page Not Found. No matter if it is intentional or unintentional, it will cause a bad user experience for your site, leading to an SEO drop and fewer sales. In this blog, we will guide you on the way to locate & fix ’em in WordPress.

Table of Contents

  • What Is a 404 Page Error in WordPress?
  • Why Should You Track the 404 Page Error in WordPress?
  • How to Track & Redirect 404 Error Status Code Pages
    • Track 404 Errors with Google Analytics 4
      • GA4 Engagement Reports
    • Google Search Console Pages Report
      • Online Broken Link Checkers
    • How to Redirect the 404 Pages in WordPress
      • Redirect to Your Home Page
      • HTML Redirects
      • 301 Redirects
    • Some Other Ways to Fix 404 Page Errors
  • Conclusion

What Is a 404 Page Error in WordPress?

404 Page Not Found is an HTTP status code that comes up with a notification about a page not existing. For instance:

  • 404 Page not found
  • 404 error – Page not found
  • Or similar notifications.

Many site-related factors can take full responsibility for this 404 status code such as entering the wrong URL, changing the URL without proper redirecting, pages removed from the site, or domain name disappearance. Otherwise, the server malfunctions can cause the 404 error code, too.

Why Should You Track the 404 Page Error in WordPress?

Recently, Google has updated its algorithms and the new analytics system – Google Analytics 4. This big update changes the preference from clicks and traffic to user experience, which means the user experience will determine the SEO rankings mainly.

Read more:  Google’s #IMakeApps: Promote App And Game Developers

Then, you will understand what I mean here. 404 pages will affect your audience’s site experience like this:

  • When they enter a 404 page, they will leave the site immediately, increasing your site’s bounce rate.
  • Leaving the site soon also decreases the conversion rate and sales (which will be really harmful if your site is a business one).
  • A 404 page will affect your site’s SEO rankings quite severely, how about multiple 404 pages at a time? If it’s a blog post, the effect will be less than a product page, obviously.
  • How do you do to connect to other sites? Backlinks! If the backlinks on the page disappear, your domain authority will decrease and so do the Google keyword rankings.

How to Track & Redirect 404 Error Status Code Pages

There are many ways to find and fix a Page not found. Let’s roll out!

Track 404 Errors with Google Analytics 4

Google Analytics 4 or GA4, completely updated in June 2023, ends the working period of Google Universal Analytics. Offering a wider range of features for webmasters, GA4 can jump in and deal with many problems on-site. Of course, one of them is detecting 404 pages not found.

GA4 Engagement Reports

You can use the GA4 Reports section to find the 404 pages.

Step 1: Open the “Page & Screens” report in the Engagement section.

Page and screen report GA4

Step 2: Choose the option “Page title & screen class” as the main dimension.

Page title and screen class GA4

Step 3: Choose the 2nd option “Page path & screen class”.

Page path and screen class Dimension GA4

Step 4: Search and enter the title of 404 link pages.

404 Page Not Found GA4 Report

It’s easy to work out, however, this method only shows up a list of pages that don’t exist but people still click on it. Also, it will take you lots of time to do this literally every day.

Read more:  How to Choose the Best WordPress Hosting?

Google Search Console Pages Report

Google Search Console (GSC) will list all 404 links that Google bots detect on your website – both soft 404s & hard 404s.

Step 1: Log in to your site’s GSC, in the Indexing section, choose “Pages”.

Indexing Pages GSC

Step 2: Scroll down a little bit, and you will see the section “Why pages aren’t indexed”. Choose “Not found (404)”.

Pages not Indexed GSC

Step 3: You will see all 404 links and then it’s all on you.

404 Pages GSC

Online Broken Link Checkers

You can take advantage of online checkers to find 404 pages such as:

  • AtomSEO 404 Detector
  • Dead Link Checker
  • SEO Site Checkup

How to Redirect the 404 Pages in WordPress

Redirect to Your Home Page

Redirecting all 404 links to your homepage is the most convenient way to reduce bounce rate, increase time on site, and keep traffic on your site. If your site has 404 dead links, redirect the audience to the homepage with an explanation. Also, this will benefit you if you have inactive PPC ads on your homepage.

However, redirecting to the homepage may confuse the users when they try to access a specific page. Also, doing this will put a lot of commands on your server which will slow your site down a lot, especially big sites/brands. Moreover, Google will recognize the large number of 404s as “cheating” which affects your site’s overall search rating results.

To do it manually, you can access the theme folder /wp-content/themes/theme name/, look for the file PHP, and rename it to the 404.php file.

404.php

Next, make a new PHP file in Notepad and insert the below code:

 <?php

header("HTTP/1.1 301 Moved Permanently");

header("Location: ".get_bloginfo('url'));

exit();

?>

You will save it as PHP – All files, come back to the file /wp-content/themes/theme name/ to upload the new 404.php to the active theme folder.

Read more:  PayPal vs Stripe vs Authorize.net vs Amazon: Which Payment Gateway Is More Suitable For Your WordPress Site?

Otherwise, you can use a WordPress plugin for redirection for this.

HTML Redirects

When entering a 404 page, you may get transferred to a new site after a short time. The notification will show some kind of “The site you access has been moved and you will be redirected shortly.”

It’s good for temporary purposes but it will be harmful in the long way. It will affect UX since they will stuck in a loop if they keep looking for that specific page. Also, this will require more redirects, which puts a heavy duty on your server.

301 Redirects

When you change the slugs, you might not redirect the current links to new ones, causing 404s. This may also happen when you change your site’s domain name or separate www & non-www versions of your website.

You can use 301 redirects for long-aged sites with great link juice. Both free and paid plugins will do this, but today we will dip into the 301 redirection tool in Rank Math.

Step 1: Access Rank Math SEO -> Redirections.

Rank Math Redirections

Step 2: Choose “Add New” and fill in all needed information.

Rank Math Add New Redirect

Step 3: Choose “Add Redirection”.

With Rank Math, you can also access 302 & 307 redirection types or 410/451 maintenance codes. These are some of the most popular ways for you to redirect.

Some Other Ways to Fix 404 Page Errors

You can look up some other methods to fix this error:

  • Restart your browsers
  • Delete your browser’s cache
  • Recheck your URL’s spelling
  • Fix file permissions
  • Disable and create a new .htaccess file

Conclusion

Status code 404 is a very common error that about 99.99% of all websites will meet, no matter how you perfect your site. However, you can avoid it as much as possible with our tips above.

Read more: 8+ WordPress FAQ Plugins for Creating a Self-Service Support Center 


Contact us, ThimPress:

Website: https://thimpress.com/

Fanpage: https://www.facebook.com/ThimPress

Youtube: https://www.youtube.com/c/ThimPressDesign

Twitter: https://twitter.com/thimpress

TAGS: seotutorialWordPress
  • Share
  • Facebook
Duke
ThimPress content writer, customer support, SEO learner, and on-page advertisement manager. Wanna feature your site on ThimPress? Contact me via email [email protected]. Cheer!

Related Articles

Improve SEO Social Signals

Best Methods to Enhance Your SEO Social Signals

The Best Ways to SEO with Images

10+ Best Ways to SEO with Images (Detail Guide)

EIG Hosting Alternatives

EIG Hosting: Recommendations for Alternatives

The Best Ways to Use Google Trends for SEO

10+ Best Ways to Use Google Trends for SEO (Tested)

Best Yoast SEO Alternatives

Which Are The Best Yoast SEO Alternatives For WordPress?

Latest Articles

  • Improve SEO Social Signals

    Best Methods to Enhance Your SEO Social Signals

  • How Much Does Magento Cost?

    Magento Pricing: How Much Does It Cost to Run a Magento Store?

  • Best WordPress Development Agencies

    Best WordPress Development Agency Review: The Top 8 Agencies You Should Consider for Your Project

  • Best Multi Currency WordPress Plugins

    Why Use A Multi Currency WordPress Plugin to Boost Your Sales? Top 7 Picks

  • The Best Ways to SEO with Images

    10+ Best Ways to SEO with Images (Detail Guide)

Categories

  • Blog
  • Tutorials & Updates
  • Marketing & SEO
  • WordPress Theme Collections
  • Glossary
thimpress logo

We are a company that is passionate about developing products to help you build your business online. Our very first priority is to guarantee our customers’ experience and satisfaction.

"ThimPress" is a brand of "PhysCode LLC".
Address: 14936 DILLOW ST, #V301, Westminster, CA 92683.
Email: [email protected]


COMPANY

  • Privacy Policy
  • Terms & Conditions
  • Refund Policy
  • Item Support Policy
  • Partner
  • Advertise

AFFILIATE

  • Become an Affiliate
  • Affiliate Terms & Policies

SUPPORT

  • Documentation
  • Forum
  • How to get help

PRODUCT

  • WordPress Plugins
  • WordPress Themes
  • Shopify Themes
  • Coupon

Our Network

  • Facebook
  • Twitter
  • Envato
  • Youtube
  • PhysCode
  • ArrowTheme

Special offer promotion

Up To 40% OFF
ThimPress Products
Sale ends October 15, 2023
Show me more
Designed by ThimPress. Powered by WordPress.
DMCA.com Protection Status
  • Terms & Conditions
  • Documentation

Sign In

Lost your password?

Not a member yet? Sign up now

Lost Password

Please enter your username or email address. You will receive a link to create a new password via email.

Are you a member? Sign in now