Custom 404 page

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
User avatar
snivell
This is my homepage
This is my homepage
Posts: 114
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Oct 17, 2013 6:29 pm
Location: United States

Custom 404 page

Post by snivell »

How do I set a custom 404 page not found page?
User avatar
Decicus
Compulsive poster
Compulsive poster
Posts: 65
Joined: Thu Dec 05, 2013 1:55 am
Location: Norway
Contact:

Re: Custom 404 page

Post by Decicus »

This can be done using ".htaccess". Let's say your page is located at: http://example.com/Custom404.html

Create or edit your .htaccess in the root directory of the website itself, and then add this line:

Code: Select all

ErrorDocument 404 http://example.com/Custom404.html
You would obviously replace "http://example.com/Custom404.html" with the location to your 404 page.
Post Reply