light
light
dark
dark
  • 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
19
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

dashboard
Latest News

Free Studio Management Software for Photographers & Videographers

Are You a Photographer Drowning in Paperwork? Hereโ€™s How to Fix It.   If you’re a pho

SoftMaji InfoTech
15/10/2025
31
Android Developer KYC
Latest News

Google’s New Android Developer Verification: What You MUST Do

Big News for All Android Developers! If you create apps for the Google Play Store, you nee

SoftMaji InfoTech
24/09/2025
40
gemini-on-break
Latest News

Gemini is Currently on a Break โ€“ What Does This Mean?

If you are searching โ€œGemini is currently on a breakโ€, you are not alone. Many people arou

SoftMaji InfoTech
04/09/2025
37
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.