Image for post
Image for post

How to make a custom 404 error page for your website

…and why

Rachit Gupta
Nov 15, 2016 · 3 min read
Image for post
Image for post
When a user attempts to follow a broken link, he sees a “404 not found” page

Let’s dive right in.

Step 1: Are you using a website builder like Squarespace or Weebly?

Step 2: Create your custom 404 page in HTML.

Image for post
Image for post
404 page for my portfolio

Step 3: Look for “.htaccess” file in the root directory of your server

Step 4: Edit .htaccess file

ErrorDocument 404 /not-found-page.html

Step 5: Make sure the path is correct and test it

Step 6: Did it work? If not, update the settings of your server

Designer Recipes

Growing as a designer by means of frequent experiments

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store