Skip to main content
SidsProjectImpact

Back to all posts

How to Customize Error Pages In CodeIgniter?

Published on
9 min read
How to Customize Error Pages In CodeIgniter? image

Best Error Page Customization Tools to Buy in April 2026

1 Super Easy Excel: Master Essential Tools, Gain Confidence and Proficiency in Handling any Data Challenge

Super Easy Excel: Master Essential Tools, Gain Confidence and Proficiency in Handling any Data Challenge

BUY & SAVE
$16.59
Super Easy Excel: Master Essential Tools, Gain Confidence and Proficiency in Handling any Data Challenge
2 Carista EVO - Bluetooth OBD2 Scanner - Car Diagnostic Tool & Code Reader with Access to Diagnostics, Customizations, Service Tools & Live Data (Subscription Required)

Carista EVO - Bluetooth OBD2 Scanner - Car Diagnostic Tool & Code Reader with Access to Diagnostics, Customizations, Service Tools & Live Data (Subscription Required)

  • ACCESS ADVANCED DIAGNOSTICS WITH A PAID SUBSCRIPTION PLAN.

  • COMPATIBLE WITH A WIDE RANGE OF POPULAR VEHICLE BRANDS.

  • DIY MAINTENANCE AND LIVE DATA MONITORING MADE EASY!

BUY & SAVE
$41.99 $59.99
Save 30%
Carista EVO - Bluetooth OBD2 Scanner - Car Diagnostic Tool & Code Reader with Access to Diagnostics, Customizations, Service Tools & Live Data (Subscription Required)
3 Crapyt 13 PCS Planner Discs Discbound Expansion Discs for Disc Notebook 1.38"×0.2" Purple

Crapyt 13 PCS Planner Discs Discbound Expansion Discs for Disc Notebook 1.38"×0.2" Purple

  • CUSTOMIZE YOUR NOTEBOOK WITH EASY ADD/DELETE PAGE FLEXIBILITY!
  • SECURE DESIGN KEEPS PAGES INTACT, PREVENTING LOSS AND DISARRAY.
  • VERSATILE USE FOR NOTEBOOKS, FOLDERS, AND MORE; ORGANIZE EFFORTLESSLY!
BUY & SAVE
$8.99
Crapyt 13 PCS Planner Discs Discbound Expansion Discs for Disc Notebook 1.38"×0.2" Purple
4 DISCOUNT PROMOS 10/50/100 Recyclable Spiral Small Notebooks Pack - Customizable Text, Logo - 60 Lined Pages - Blue

DISCOUNT PROMOS 10/50/100 Recyclable Spiral Small Notebooks Pack - Customizable Text, Logo - 60 Lined Pages - Blue

  • ECO-FRIENDLY DESIGN: RECYCLED COVERS FOR A SUSTAINABLE CHOICE.
  • CUSTOMIZABLE GIFTS: PERFECT FOR BOSSES, FRIENDS, AND LOVED ONES.
  • HIGH-QUALITY, PORTABLE: 60 PAGES OF DURABLE LINED PAPER FOR ALL USES.
BUY & SAVE
$48.99
DISCOUNT PROMOS 10/50/100 Recyclable Spiral Small Notebooks Pack - Customizable Text, Logo - 60 Lined Pages - Blue
5 JBESUHI A5 Thick Blank Sketchbook Notebook - 660 Pages Smooth Paper, Soft Faux Leather Cover Journal for Ink, Watercolor, Pen & Pencils (5.5" x 8.3")

JBESUHI A5 Thick Blank Sketchbook Notebook - 660 Pages Smooth Paper, Soft Faux Leather Cover Journal for Ink, Watercolor, Pen & Pencils (5.5" x 8.3")

  • 660 PAGES OF ACID-FREE PAPER FOR LIMITLESS ARTISTIC EXPRESSION.
  • COMPACT A5 SIZE FITS EASILY IN BAGS FOR CREATIVE INSPIRATION ANYWHERE.
  • PREMIUM FAUX LEATHER COVER ADDS ELEGANCE AND DURABILITY FOR LONG USE.
BUY & SAVE
$15.99 $19.99
Save 20%
JBESUHI A5 Thick Blank Sketchbook Notebook - 660 Pages Smooth Paper, Soft Faux Leather Cover Journal for Ink, Watercolor, Pen & Pencils (5.5" x 8.3")
6 Gdotmely 36 Pack Mini Pocket Notebooks,3.5 X 5.5 Inch Lined Notebooks Bulk, Small Journal Memo Notepads for Students,Traveler,Office Meeting Supplies,12 Bright Colors (30 Sheets/60 Pages)

Gdotmely 36 Pack Mini Pocket Notebooks,3.5 X 5.5 Inch Lined Notebooks Bulk, Small Journal Memo Notepads for Students,Traveler,Office Meeting Supplies,12 Bright Colors (30 Sheets/60 Pages)

  • ORGANIZED COLLECTION: 36 MINI NOTEBOOKS IN 12 VIBRANT COLORS FOR CATEGORIZATION.

  • ON-THE-GO SIZE: COMPACT DESIGN FITS EASILY IN POCKETS AND BAGS.

  • DURABLE QUALITY: STURDY COVERS AND THICKER PAGES ENSURE SMOOTH WRITING.

BUY & SAVE
$16.99
Gdotmely 36 Pack Mini Pocket Notebooks,3.5 X 5.5 Inch Lined Notebooks Bulk, Small Journal Memo Notepads for Students,Traveler,Office Meeting Supplies,12 Bright Colors (30 Sheets/60 Pages)
7 Seajan 12 Pcs Blank Journal Notebook Including 4 Pcs A5 120 Pages Sublimation Notebooks Blank 8 Sublimation Pens for School Supplies DIY Back to School Gifts

Seajan 12 Pcs Blank Journal Notebook Including 4 Pcs A5 120 Pages Sublimation Notebooks Blank 8 Sublimation Pens for School Supplies DIY Back to School Gifts

  • PERSONALIZE NOTEBOOKS EASILY WITH CUSTOM COVERS FOR CREATIVE FREEDOM.
  • VERSATILE SET WITH 4 NOTEBOOKS AND 8 PENS FOR ALL YOUR WRITING NEEDS.
  • PERFECT GIFT FOR TEACHERS AND ARTISTS, INSPIRES CREATIVITY AND EXPRESSION!
BUY & SAVE
$21.99
Seajan 12 Pcs Blank Journal Notebook Including 4 Pcs A5 120 Pages Sublimation Notebooks Blank 8 Sublimation Pens for School Supplies DIY Back to School Gifts
8 Glenmal 4 Sets Discbound Notebook, 8.5" x 11" Customizable Notebook Letter Size Includes Discs 5 Tab Note Dividers College Ruled Removable Pages Refillable Subject Journal for Office(Fashion Color)

Glenmal 4 Sets Discbound Notebook, 8.5" x 11" Customizable Notebook Letter Size Includes Discs 5 Tab Note Dividers College Ruled Removable Pages Refillable Subject Journal for Office(Fashion Color)

  • VERSATILE ORGANIZATION: 4 PLANNER SETS WITH VIBRANT COLORS FOR ALL NEEDS!
  • PREMIUM QUALITY: DURABLE MATERIALS ENHANCE YOUR WRITING EXPERIENCE.
  • DIY CUSTOMIZATION: EASILY ASSEMBLE AND PERSONALIZE YOUR NOTEBOOK STYLE!
BUY & SAVE
$37.99
Glenmal 4 Sets Discbound Notebook, 8.5" x 11" Customizable Notebook Letter Size Includes Discs 5 Tab Note Dividers College Ruled Removable Pages Refillable Subject Journal for Office(Fashion Color)
+
ONE MORE?

To customize error pages in CodeIgniter, you can follow these steps:

  1. Open the application/config/routes.php file in your CodeIgniter application directory.
  2. Locate the $route['(:any)'] line, which is the default route for handling all requests.
  3. Add the following line above the default route:

$route['404_override'] = 'errors/custom_404';

This configures CodeIgniter to redirect all 404 (Not Found) errors to the specified custom_404 method in the errors controller.

  1. Create a new file called Custom404.php under the application/controllers directory. This will serve as our errors controller.
  2. Open the newly created Custom404.php file and add the following code: