softmaji-header-wbg-min
softmaji-header-wbg-min
softmaji-blue-header-min
softmaji-blue-header-min
  • Home
  • Services
    • Website Designing
      • Responsive Website Design
      • Static Website Design
      • Website Redesign
      • Landing Page Design
    • Website Development
      • PHP Website Development
      • WordPress Website Development
      • Ecommerce Website Development
      • Custom Website Development
    • Digital Marketing
      • Google Adwords/PPC
      • Facebook Promotion
    • SEO Service
  • Trainings
    • Learn Web Development
    • Learn Graphics Design
    • Learn Business Communication Skills
  • Pricing
  • Portfolio
  • Events
  • Offers
  • Contact Us

Steps to Create a Custom WordPress 404 Error Page

HomeSteps to Create a Custom WordPress 404 Error Page

Offer Expire Soon..


Only New User..


In this article, you will learn to create a custom error page for a “404 Requested page not found” error. The main reason for creating a custom error page is to inform the visitor that the website has received the request but the requested page isn’t available.

Table of Contents

Toggle
  • Steps to Create a Custom WordPress 404 Error Page
  • Steps to Set Up the Error Handlers via the .htaccess File

Steps to Create a Custom WordPress 404 Error Page

  1. At first, login to your cPanel Account and from the Files section, select File Manager.
  2. In File Manager, go to the directory – public_html.
  3. On the top right corner, click the Settings icon and enable Show Hidden Files.
  4. Right click the .htaccess file and click Edit.
  5. You can create a new .htaccess file, if you can’t find one by clicking the +File icon on the top left corner.
  6. Then add ErrorDocument 404 “Page not found” to the .htaccess file.

Steps to Set Up the Error Handlers via the .htaccess File

  1. Login to your cPanel account and go to the “File Manager” under the Files section.
  2. You will be redirected to File Manager Tool. Now go to the “public_html” directory.
  3. At the top right side, click the Settings button, tick the Show hidden files option and save it.
  4. Then right click on the .htaccess file to edit it. If you don’t have one, create a new .htaccess file with the “+File” option on the left side of the window.
  5. You can simply add the line “ErrorDocument 404 “<H1>Page not found</H1>” to the .htaccess” file without quotes. The message can be edited as per your preference. In case you have written separate codes for 404 error then create a new file for that, inside the “public_html”. Then the code will be “ErrorDocument 404 /404.html”. In this code, the error handling file is named as 404.html.
  6. Then click “Save Changes” to save. With this, your website is ready to handle the 404 errors.

To create a 404 error handling page is a good practice so that the visitors won’t see any strange errors on your website.

Faizan Khan
14
Latest News
Prev PostLearn to Install and Manage WordPress Sites With WP-CLIMay 14, 2024
Next PostDiscover the Steps To Use WordPress do_shortcodeMay 14, 2024

Related items

2
Latest News

iOS 18.5 vs. iOS 19: Full Comparison of Every Feature

Apple is always updating the software that runs on our iPhones. In 2025, we have two impor

SoftMaji InfoTech
10/07/2025
22
iPhone 17 Air
Latest News

iPhone 17 Air Leak: Full Details on the Super-Thin Design, Features, and Price

Get ready, Apple fans! The internet is buzzing with exciting news about a brand-new iPhone

SoftMaji InfoTech
10/07/2025
18
otpless-issue
Latest News

OTPLess Not Working? Here’s What Happened!

Imagine this: You run a business, and suddenly, your customers can’t log in to your websit

SoftMaji InfoTech
20/06/2025
41
softmaji-header-wbg-min
SoftMaji is one of the affordable web development company in the web development industry. You don’t have to go searching anywhere for finding a reliable web development partner because we have crafted web development solutions that can fill the void left by others in the market.
Services
  • News Portal Development
  • Custom Website Development
  • PHP Website Development
  • Ecommerce Website Development
  • WordPress Website Development
Shortlinks
  • Blog
  • Offers
  • Events
  • Pricing
  • Reviews
  • Portfolio
  • Our Team
  • Payment Options
  • Explore Packages
Company
  • FAQ
  • Careers
  • Sitemap
  • Feedback
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms & Conditions
  • Refund And Cancellation
Contact Us
4/40 Vipul Khand , Gomti Nagar Lucknow
Uttar Pradesh 226010
Landline - +915223162418
Email - hello@softmaji.in
Office Time Mon - Sat
(10:00AM - 5:00PM)
Sunday Close
+91 9795405324
Lucknow , Uttar Pradesh
Copyright © 2016-2025. All Rights Reserved.