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


Please Register to get full access to the forums.
Comment
 
LinkBack Article Tools Display Modes
<!-- google_ad_section_start -->How to create a Custom 404 Error Page with a Google powered search box<!-- google_ad_section_end -->
How to create a Custom 404 Error Page with a Google powered search box
Published by popowich
11-15-2008
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
Article Tools

  #1  
By ArnyVee on 11-21-2008, 06:44 AM
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.
Reply With Quote
  #2  
By 2dub on 11-21-2008, 08:45 AM
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.
Reply With Quote
Comment


Tags
404, error page, google, google search, vbulletin

Article 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
Article Article Starter Category Comments Last Post
Help - Google Custom Search in Adsense glennybee Making Money Marketing vBulletin 10 09-19-2008 05:09 PM
How do I create a alphabetical search menu veenuisthebest vBulletin Questions 2 06-10-2008 06:33 AM
Custom Google Search glennybee vBulletin SEO Tips and SEO Questions 6 05-31-2008 12:12 AM
I need create a New page with user info Jhonnyf vBulletin Questions 4 12-10-2007 12:43 PM
Create a Google Friendly Page,Search Engine Boost Video News Forum Archives 0 01-06-2007 02:42 AM


All times are GMT -6. The time now is 07:48 AM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions
vBulletin Skins, Styles, Templates, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory