Go Back   vBulletin Setup > vBulletinSetup Information > Community Forum Management > vBulletin Tutorials

Reply 
 
LinkBack Thread Tools Display Modes
Old 11-15-2008, 09:16 AM   #1
Supporters
vBulletin Owner
 
popowich's Avatar
 
Join Date: Jul 2007
Location: Rochester, New York
Posts: 500
popowich is just really nicepopowich is just really nice
How to create a Custom 404 Error Page with a Google powered search box

Earlier this morning I mistyped an address inside my forum and received a generic web browser 404 error page:

Generic 404 Error Page.JPG

Yuck! This certainly is not a warm and friendly greeting for a member or new visitor to your site.

While checking for a custom vBulletin enabled 404 error page on vBulletin.org the last attempt I could find was for vBulletin 3.5.

After doing a google search I found a good starting point at the vBSEO forums.

I got to work and used the examples in the first post to create a custom_404 template and a 404.php file on my web server.

Generic 404 Template and File.JPG

I did not feel right doing a copy/paste to my own example, please copy/paste from first post.

I am not a vBSEO customer so I needed to add an apache directive to the VirtualHost section of my httpd.conf for my web site:

Quote:
ErrorDocument 404 /404.php
When testing my work I realized that I did not like the error message provided in the example above, and recalled recently seeing code at the Google Webmaster Tools web site for an enhanced 404 error page. If you do not have an account already, create an account, enter your site, and then you can click on Tools followed by Enhance 404 Pages to get code personalized for your forums.

Generic 404 Enhance 404 Pages.JPG

Replace the following line with the google enhanced 404 page code:

Quote:
You can try a <a href="/search.php">search</a> if you are looking for something specific.
The result is a great looking custom 404 error page that includes a google powered search for your forums!

Demo

-Raymond

Last edited by Brandon Sheley; 11-15-2008 at 07:01 PM.
popowich is offline   Reply With Quote

Advertisement [Remove Advertisement]

Old 11-21-2008, 03:44 AM   #2
vBulletin Owner
 
ArnyVee's Avatar
 
Join Date: Apr 2008
Location: South Florida
Posts: 2,884
Blog Entries: 1
ArnyVee is just really niceArnyVee is just really niceArnyVee is just really nice
Send a message via AIM to ArnyVee Send a message via Yahoo to ArnyVee Send a message via Skype™ to ArnyVee
Re: How to create a Custom 404 Error Page with a Google powered search box

Thanks Raymond!

I actually had gotten to the point where I set up my custom 404 screen, but I haven't put anything on it other than the following message....

"Sorry, the page you have requested cannot be found.

You can try a search if you are looking for something specific."

.....so, I have to make it a lot more spiffy obviously! This is a very good option.

Thanks again.
ArnyVee is offline   Reply With Quote
Old 11-21-2008, 05:45 AM   #3
vBulletin Owner
 
2dub's Avatar
 
Join Date: Jun 2008
Location: Moyock, NC
Posts: 203
Blog Entries: 2
2dub has a spectacular aura about
Re: How to create a Custom 404 Error Page with a Google powered search box

This is great! I will be putting it on this weekend.
__________________
Warren
Umpire-Empire
2dub is offline   Reply With Quote
Reply 
vBulletin Setup > vBulletinSetup Information > Community Forum Management > vBulletin Tutorials

Tags
404, box, create, custom, error, error page, google, google search, page, powered, search, vbulletin

Thread Tools
Display Modes

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd error on the page... grimholtt Troubleshooting vBulletin Problems 4 03-10-2009 05:56 AM
Custom Google Search glennybee vBulletin SEO Tips and SEO Questions 6 05-30-2008 09:12 PM
I need create a New page with user info Jhonnyf Troubleshooting vBulletin Problems 4 12-10-2007 09:43 AM
Error on the page eJM Feedback and Suggestions 23 08-11-2007 06:10 PM
Create a Google Friendly Page,Search Engine Boost Video News Forum Archives 0 01-05-2007 11:42 PM


All times are GMT -8. The time now is 10:23 PM.