Making Your Very Own Custom 404 Page (not Found), Jazz up your 404's |
||
Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.
In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.
Zymic Webmaster Forums Zymic Free Web Hosting Tutorials |
||
Making Your Very Own Custom 404 Page (not Found), Jazz up your 404's |
||
Jul 18 2008, 09:46 AM
Post
#1
|
|
![]() Outrageously Uber Ninja ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 5,140 Joined: 11-May 08 From: Australia Member No.: 25,876 |
A cool trick you can entice your visitors with is custom error pages. When a page on your server is not found, your visitors will normally see their browser's default message such as "Page cannot be displayed." If you used a custom error page though, your visitors will see your page.
404 Error pages will ONLY work if you are using it on a domain. Sub-domains (something.your-site.com or http://www.your-site.com/something) will NOT work. Here's How: 1. Create an HTML file for your 404 page. It could be anything you would like. It could be just simply 404 on a blank page.. or it could be your layout that includes the 404 words in it.. it's all up to you. 2. Save that file in any file format you want (html, php etc;) and upload it to your webserver. You can either keep it in your main or root directory, or you can create a subfolder. If you're only going to be using one (404) then I suggest just leaving it in your root folder. 3. Press start > Run > type "notepad" (in mac, just open a text editor) now you will take this code below, and put it into your text editor: CODE ErrorDocument 404 http://www.yoursite.com/404.htm 4. Remember, change the URL in the above code to the path of your 404 page on your server. 5. Now file > save as > htaccess.txt | save it somewhere that you will remember. 6. Upload the htaccess.txt folder to your webserver. (Make sure it's in the home or root directory) 7. Rename the file (will be different for different ftp clients) to .htaccess (make sure there is a "." before htaccess and NO ".txt" after htaccess) 8. And there you go! You should be good to go. There are also other error pages available such as internal error, forbidden etc; search google for these .. and then its just a matter of adding that code to your .htaccess file and making another error document (like your 404 page). Any questions? Jacob. |
|
|
![]() |
Dec 10 2008, 02:45 AM
Post
#2
|
|
|
Newbie ![]() Group: Members Posts: 17 Joined: 10-December 08 Member No.: 72,498 |
That is really useful and well explained, thanks!
|
|
|
NaRzY Making Your Very Own Custom 404 Page (not Found) Jul 18 2008, 09:46 AM
alandu Nice tutorial, but I have a problem.
I know you s... Sep 1 2008, 01:14 PM
Crown i was going todo a tutorial on this :( Sep 1 2008, 01:38 PM
wozzym wow thats a lot simpler than I thought. Sep 1 2008, 03:20 PM
DJPazze Thanks for the info! (tutorial)
Simple, simpl... Sep 1 2008, 04:31 PM
Yaveo so, this wont work on zymic? or will it ?? Sep 2 2008, 07:21 PM
swordz This will work on zymic servers.
swordz Sep 2 2008, 07:53 PM
NaRzY So instead of getting a generic 404, you can have ... Sep 3 2008, 09:21 AM
outletpraiseband is there anyway that this could be setup so if say... Sep 7 2008, 06:10 PM
wozzym if vndv is down your site can't be accessed. t... Sep 7 2008, 06:55 PM
Passion Great Tutorial
Keep Providing more.. :) Sep 20 2008, 07:34 AM
burgly I know nothing of Html, Php, Mysql, and I'm ne... Oct 4 2008, 09:00 PM
Sickness you can also create a page for "when the serv... Oct 4 2008, 10:58 PM
swordz 500.13. A full list is here. And there's far m... Oct 4 2008, 11:04 PM
caseymadaline Nice tutorial. It looks pretty simple. I'll gi... Oct 8 2008, 02:28 AM
estuartie Hiya - great tutorial -I always wondered how it w... Oct 8 2008, 09:32 AM
tomming You can also try htaccess editor (www.htaccessedit... Oct 26 2008, 03:08 AM
byluiz ty Oct 8 2008, 03:35 PM
IamShipon1988 I never really had to create so many error pages. ... Oct 8 2008, 09:13 PM
MASTER MIST i can't use mine for some reason this is ticki... Nov 21 2008, 11:50 PM
Obaidy Hi I followed the steps up in the tutorial the pro... Sep 16 2012, 02:59 PM
zpcs Hi I followed the steps up in the tutorial the pro... Sep 17 2012, 10:44 PM
MrTouz Just an other tip :
If you want to use images in ... Nov 24 2008, 11:47 PM
MH-Dolly thanks! I will use it when I go home! Dec 9 2008, 03:31 PM
akpokemon Thank you so much! How cool! :D
But I hav... Dec 23 2008, 12:14 AM
Roee But I have a problem! :( I made an error on my... Dec 23 2008, 07:03 PM
akpokemon You can use the "File Manager" in your a... Dec 24 2008, 01:18 AM
M-Optimizer I don't know why it doesn't work for me. Jan 11 2009, 05:15 AM
Abdes Samad If it will work, all would be nice :D Jan 11 2009, 11:23 AM
myjunkie Great tutorial! :D Jan 12 2009, 09:49 AM
primatage PROBLEM:
Several people have posted asking why ... Feb 18 2009, 03:12 AM
Sir Graystar This doesn't really work for me. If I get a 40... Mar 9 2009, 06:16 PM
Jenniferlinn A cool trick you can entice your visitors with is ... Mar 12 2009, 07:01 AM
farhome oo this is what i'm looking for. by the way i ... Jun 7 2009, 07:13 AM
alicia8522 Excellent information - thank you. I will definit... Aug 2 2009, 02:06 AM
NaRzY oo this is what i'm looking for. by the way i ... Aug 2 2009, 04:56 AM
NaRzY Just for the record, this has been tested and work... Oct 20 2009, 01:35 PM
lynndalton Hey...
Thanks for providing such a wonderful stuff... Dec 8 2009, 09:37 AM
jordan k hu Works on my subdomain! Dec 21 2009, 07:12 PM
True Hi, This has not worked for me. I did exactly how ... Dec 22 2009, 10:35 AM
Ed Hi, This has not worked for me. I did exactly how ... Dec 22 2009, 11:42 AM
True Thanks alot ed!
True Dec 22 2009, 05:18 PM
Mattyski Thanks for the 404 Tip.
Now to find out if it can ... Jan 8 2010, 01:37 PM
ssfdre38 make sure you name it .htaccess and not .HTACCESS ... Feb 6 2011, 08:09 PM
sherryabhy you can also generate a page for "when the se... Mar 10 2011, 04:25 AM
kamlanegi Hi,
I think 404 error is the Error message when ... May 18 2011, 09:34 AM
ssfdre38 make an .htaccess file and in it you add ErrorDocu... May 18 2011, 04:09 PM
ielts7band hi!
i want to know that would i have to make ... Jun 8 2011, 10:26 AM
Black Eagle The code can be working on the whole site, so you... Jun 8 2011, 06:48 PM
sharunks007 Thanks a lot!!! :D
It's working on... Oct 6 2011, 08:50 AM
shnooky Thanks for the help, the steps seem alot easier th... Oct 12 2011, 03:43 PM
nwilkerson79 Just made my own 404 page with this tutorial, it w... Nov 13 2011, 05:09 AM
supportcorporate Simply adorable, i will keep this code and use in ... Dec 30 2011, 10:46 AM
bebo A cool trick you can entice your visitors with is ... Mar 27 2012, 05:35 PM
JohannesKoenig Found a list of apache error codes and other usefu... Aug 23 2012, 10:46 PM
Godgeneral A cool trick you can entice your visitors with is ... Oct 16 2012, 03:52 PM
annahussy Very nice tutorial you share here that really grea... Feb 22 2013, 06:09 AM ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users) |
||
| 0 Members: | ||
Forum Jump |
||
| Lo-Fi Version | Time is now: 23rd May 2013 - 08:49 PM |