Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > BlueVoda Website Builder Forums > BlueVoda Tips, Tricks and Shortcuts

Notices

BlueVoda Tips, Tricks and Shortcuts Know a great BlueVoda (or Web design) tip or trick? Share it with the world here. Become famous for your brilliance! Please, No Questions or Problems!

Reply
 
Thread Tools
  #1  
Old 03-05-2008, 01:34 AM
Marincky's Avatar
20206.co.uk
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 4,331
Send a message via MSN to Marincky
Default Make a More Functional 404 Error Page

There may be other ways of doing this, this may have already been discussed, but for those of you out there who are interested in my way here is a great way to make a far more impressive and practical 404 error page.

When someone types an error on your domain address or maybe clicks on a redundant link that is still on the seacrh engine, they usually get taken to a very informal blank white page that says something like:

404 Error. The requested page cannot be found.

Pretty useless for your potential visitors as they will now bugger off elsewhere!

Here however, is what happens when they click on one of my client's sites on a url that doesn't exist...

http://www.steppin-out.co.uk/pagemadeup.html
(click to see what happens)

This is a much better page for your client to land on than the usual 404 error page.

How to make:

Create your own 404 page by using one of your site pages as the template. In my example above, the error page is basically an exact duplicate of the home page. I have just ammended the top lines to read as it does. You can create a page as you like though.

I named this page custom_page but again, name it what you like and publish it.

Go into your CP and then File Manager.

Look for a file called .htaccess

Open this file up to edit.

If it is blank just add this exactly as it is below and on one line.

ErrorDocument 404 /custom_page.html


It's also a good idea to add the code <meta name="robots" content="noindex"> to the <head> section of your 404 page, so that search engine robots don't add it to their indexes.

(If you named your page anything else but custom_page then just change that in the link above)

save it.

Now see if it works....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 03-05-2008, 01:51 AM
Marincky's Avatar
20206.co.uk
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 4,331
Send a message via MSN to Marincky
Default Re: Make a More Functional 404 Error Page

I forgot to add....

My client above received 845 error page hits in the last 4 days. Visitors coming across standard erro pages are fairly likely to go to another site... Need I say more?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 03-05-2008, 05:02 AM
Major
 
Join Date: Nov 2007
Location: Arizona
Posts: 389
Default Re: Make a More Functional 404 Error Page

Thanks for that bit of wisdom, Ramsey! It really does make more sense! I didn't even know that we had control of that page!

It's a good day when you can learn something new!

Cheers!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 03-05-2008, 03:16 PM
sedona's Avatar
Major General
 
Join Date: Jun 2007
Location: Sedona. Arizona
Posts: 2,177
Default Re: Make a More Functional 404 Error Page

Thanks for that, Ramsey. Very easy and a valuable addition to any site. When I come across custom 404s where I can navigate back into the site I usually do so, as you say.
CarbonTerry did a tutorial on this subject a while back and I meant to get back to it but didn't. Will be building one today.
Cheers!
__________________
Ken

If there hadn't been women we'd still be squatting in a cave eating raw meat, because we made civilization in order to impress our girl friends. And they tolerated it and let us go ahead and play with our toys. Orson Wells
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 03-05-2008, 04:40 PM
Marincky's Avatar
20206.co.uk
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 4,331
Send a message via MSN to Marincky
Default Re: Make a More Functional 404 Error Page

Quote:
Originally Posted by sedona View Post
Thanks for that, Ramsey. Very easy and a valuable addition to any site. When I come across custom 404s where I can navigate back into the site I usually do so, as you say.
CarbonTerry did a tutorial on this subject a while back and I meant to get back to it but didn't. Will be building one today.
Cheers!
Yeah as I said I wasn't sure if someone had touched on this before, but no doubt there are loads of ways, this is just one I discovered that I feel looks good.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 03-05-2008, 05:16 PM
Tom vR's Avatar
Brigadier General
 
Join Date: Apr 2007
Location: Centurion, South Africa
Posts: 1,698
Default Re: Make a More Functional 404 Error Page

Thanks Ramsey for a great post.
__________________
Bless you
Tom

www.renkalec.co.za
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old 03-05-2008, 11:33 PM
choco777's Avatar
Brigadier General
 
Join Date: Apr 2006
Location: Comalcalco, Tabasco, Mexico
Posts: 1,526
Default Re: Make a More Functional 404 Error Page

Nothing in file mgr saying htacess
__________________
Choco777
www.mayatabasco.com


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old 03-06-2008, 02:09 AM
Marincky's Avatar
20206.co.uk
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 4,331
Send a message via MSN to Marincky
Default Re: Make a More Functional 404 Error Page

Quote:
Originally Posted by choco777 View Post
Nothing in file mgr saying htacess
hmmm, I just noticed on the new control panels this file does not show in the file manager, despite being able to see it through ftp manager. You can always create a new file with notepad and call it .htaccess. Then just enter the code I showed above.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old 03-10-2008, 03:23 AM
Marincky's Avatar
20206.co.uk
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 4,331
Send a message via MSN to Marincky
Default Re: Make a More Functional 404 Error Page

Quote:
Originally Posted by choco777 View Post
Nothing in file mgr saying htacess
Click on file legacy manager.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old 03-12-2008, 12:26 AM
Marincky's Avatar
20206.co.uk
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 4,331
Send a message via MSN to Marincky
Default Re: Make a More Functional 404 Error Page

Just two little updates to this:

1) If you have more than one domain on an account, this can still be done. Just make a custom 404 page for all sites, make sure they are all named the same and publish them all to their respective domains.

2) Since doing this on all my own sites my Google Adsense revenue has increased by about 25%.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old 11-10-2008, 07:37 PM
DarrenC's Avatar
Colonel
 
Join Date: Jul 2008
Location: Bristol UK
Posts: 843
Default Re: Make a More Functional 404 Error Page

Quote:
Originally Posted by Marincky View Post
Click on file legacy manager.
Sorry Ramsey I can't find it in here either, is it under a different name or in a folder somewhere?

Darren
__________________
Sites recently built and hosted with Vodahost
Bristol Imperial Rugby Club
Fire & Security Products Manufacturer in Bristol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old 11-10-2008, 07:39 PM
DarrenC's Avatar
Colonel
 
Join Date: Jul 2008
Location: Bristol UK
Posts: 843
Default Re: Make a More Functional 404 Error Page

Scratch that.. I found it.
__________________
Sites recently built and hosted with Vodahost
Bristol Imperial Rugby Club
Fire & Security Products Manufacturer in Bristol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old 11-10-2008, 07:47 PM
Marincky's Avatar
20206.co.uk
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 4,331
Send a message via MSN to Marincky
Default Re: Make a More Functional 404 Error Page

LOL, I have a feeling in the new CPs you have to tick 'show hidden files' or something like that
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old 11-10-2008, 07:53 PM
DarrenC's Avatar
Colonel
 
Join Date: Jul 2008
Location: Bristol UK
Posts: 843
Default Re: Make a More Functional 404 Error Page

Apparently it says I don't have permision to tinker with htaccess on my server, when I clicked on the url at the bottom of this image. I am not sure which one to click on because it looks different the illustration above.



Please advise

Thanks
__________________
Sites recently built and hosted with Vodahost
Bristol Imperial Rugby Club
Fire & Security Products Manufacturer in Bristol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old 11-10-2008, 07:55 PM
Marincky's Avatar
20206.co.uk
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 4,331
Send a message via MSN to Marincky
Default Re: Make a More Functional 404 Error Page

If I remember correctly I did just 'edit file'
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old 11-10-2008, 08:24 PM
DarrenC's Avatar
Colonel
 
Join Date: Jul 2008
Location: Bristol UK
Posts: 843
Default Re: Make a More Functional 404 Error Page

Quote:
Originally Posted by Marincky View Post
If I remember correctly I did just 'edit file'
All sorted -- Excellent tip!!
__________________
Sites recently built and hosted with Vodahost
Bristol Imperial Rugby Club
Fire & Security Products Manufacturer in Bristol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
Old 11-10-2008, 08:25 PM
Marincky's Avatar
20206.co.uk
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 4,331
Send a message via MSN to Marincky
Default Re: Make a More Functional 404 Error Page

Quote:
Originally Posted by DarrenC View Post
All sorted -- Excellent tip!!
.. Ya it worked well for me too.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18  
Old 11-27-2008, 12:37 AM
mumu's Avatar
Master Sergeant
 
Join Date: Jan 2008
Location: mexico
Posts: 67
Default Re: Make a More Functional 404 Error Page

were do I publish the custom_page right in public_html?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #19  
Old 11-27-2008, 01:11 AM
Marincky's Avatar
20206.co.uk
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 4,331
Send a message via MSN to Marincky
Default Re: Make a More Functional 404 Error Page

yep
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #20  
Old 12-09-2008, 05:49 PM
Private First Class
 
Join Date: Feb 2008
Posts: 8
Talking Re: Make a More Functional 404 Error Page

Yay! Thanks so much for this great tip! I like my new error page!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #21  
Old 02-05-2009, 12:53 PM
Master Sergeant
 
Join Date: Jul 2008
Posts: 67
Default Re: Make a More Functional 404 Error Page

I just discovered this post, but I'm having difficulty with the CP part. Can you explain (to a technophobe!) exactly where I go in the CP, which directory do I open & how I find .htaccess?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #22  
Old 02-05-2009, 01:21 PM
LadyEye's Avatar
General & Forum Moderator
 
Join Date: Jun 2006
Location: Canada
Posts: 10,617
Send a message via MSN to LadyEye
Default Re: Make a More Functional 404 Error Page

Quote:
Originally Posted by valwilson View Post
I just discovered this post, but I'm having difficulty with the CP part. Can you explain (to a technophobe!) exactly where I go in the CP, which directory do I open & how I find .htaccess?

Thanks

You will find the path to your control panel in your voda host registration information .. the email you received when you ordered your hosting account, the one with username and password and your ip publishing address, which you will need to log in below ..

You can log into your control panel at vodahost here.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #23  
Old 02-05-2009, 04:32 PM
Marincky's Avatar
20206.co.uk
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 4,331
Send a message via MSN to Marincky
Default Re: Make a More Functional 404 Error Page

Depending on which version of control panel you have, you may need to tick a box which says 'show hidden files' to see the htaccess file. When I wrote this thread this was based on the old control panels.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #24  
Old 02-05-2009, 08:32 PM
Master Sergeant
 
Join Date: Jul 2008
Posts: 67
Default Re: Make a More Functional 404 Error Page

I can't see any box marked 'show hidden files'. When I search for htaccess, the search facility finds it (in public_html), but then when I double click it in the search box, public_html opens, but htaccess is not there. Very frustrating!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #25  
Old 02-05-2009, 08:36 PM
Marincky's Avatar
20206.co.uk
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 4,331
Send a message via MSN to Marincky
Default Re: Make a More Functional 404 Error Page

If you want to email me your CP log-in details I will gladly do this bit for you for free.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #26  
Old 02-05-2009, 09:58 PM
Master Sergeant
 
Join Date: Jul 2008
Posts: 67
Default Re: Make a More Functional 404 Error Page

Thanks , I really appreciate it. I'll email you details now
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #27  
Old 02-05-2009, 10:54 PM
Marincky's Avatar
20206.co.uk
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 4,331
Send a message via MSN to Marincky
Default Re: Make a More Functional 404 Error Page

Ok, that's done for you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #28  
Old 03-08-2009, 12:02 PM
Sergeant
 
Join Date: Sep 2008
Posts: 36
Default Re: Make a More Functional 404 Error Page

thanks marincky for this helpful tip.I just discovered this post now.I even add adsense and a google search box to my 404 page.See the sample here.
Thanks again!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #29  
Old 03-08-2009, 03:38 PM
Marincky's Avatar
20206.co.uk
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 4,331
Send a message via MSN to Marincky
Default Re: Make a More Functional 404 Error Page

hmmmmm, I wouldn't advise you put Adsense on it as it is an error page. Google will no be best pleased.

Glad you found the tip useful though.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #30  
Old 03-20-2009, 04:26 PM
Master Sergeant
 
Join Date: Sep 2008
Posts: 69
Question This is a really good tip but I've got a problem

I 've managed to make the 404 page okay and posted to public_html. It works perfectly on the www.maindirectory/anything. But it's really weird when you need to access it from a sub-directory ie www.maindirectory/anything/anywhere only 1 out of four pictures show up - the rest show as broken. Any ideas how I can fix this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #31  
Old 03-24-2009, 11:46 AM
Master Sergeant
 
Join Date: Sep 2008
Posts: 69
Talking Found the answer to my latest question myself

Figured I'd pass bit on as it might help others.

If you use ErrorDocument 404 /not_here.html in the .htaccess the web does not show any pictures, etc as they are not in the same folder.

However if you use ErrorDocument 404 http://www.yourdomain.com/not_here.html it actually redirects to the public_html file.

Don't know if this will be helpful to others, but I think it satisfies my purposes.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #32  
Old 04-11-2009, 10:51 AM
Sergeant
 
Join Date: Feb 2009
Posts: 37
Default Re: Make a More Functional 404 Error Page

If it is blank just add this exactly as it is below and on one line.

ErrorDocument 404 /custom_page.html


What if it is not blank ? as I have this in the .htaccess file

RewriteEngine on

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://mobilemassage.org/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://mobilemassage.org$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mobilemassage.org/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mobilemassage.org$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

Options All Indexes
IndexOptions FancyIndexing

<Files 403.shtml>
order allow,deny
allow from all
</Files>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #33  
Old 10-08-2009, 10:38 PM
Corporal
 
Join Date: Sep 2009
Location: Lydenburg; South Africa
Posts: 17
Smile Re: Make a More Functional 404 Error Page

What a brilliant tip! Can't believe I actually managed - I'm a complete newbie with all this stuff and bumbling along! It looks great.....THANK YOU
__________________
Alison
http://www.where-to-stay-southafrica.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +1. The time now is 01:52 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203