View Single Post
  #3  
Old 10-29-2008, 06:46 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what i found about the 501 error...

Quote:
The server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.
remember what we spoke about earler in the week with the custom 404 error pages you can make, well you can make them for 501 errors too

lets take a look at this example, and remember you can change it for a 501 error too!!

A 404 error means when you are trying to visit a page that doesn't exist. Like http://www.www.vbulletin.org/mypage.php .
When you visit that link you get:

Not Found
The requested URL /mypage.php was not found on this server.

This doesn't look very nice though, just text on a white page.
To change this we need a .htaccess file.
So just open word pad add this line:

ErrorDocument 404 /404.html

What does that do ?
You are telling the server, if a 404 error comes up, redirect to 404.html.

So just create a html file called 404.html or any name you want, but remember to change that in the htaccess.

And give this a nice feedback message like.

Sorry, the link that brought you to this page seems to be out of date or broken.

More errors :

* 302 - Redirect
* 400 - Bad Request
* 401 - Authorization Required
* 402 - Payment Required
* 403 - Forbidden
* 404 - File Not Found
* 405 - Method Not Allowed
* 406 - Not Acceptable
* 407 - Proxy Authentication Required
* 408 - Request Time-out
* 409 - Conflict
* 410 - Gone
* 411 - Length Required
* 412 - Precondition Failed
* 413 - Request Entity Too Large
* 414 - Request-URI Too Large
* 415 - Unsupported Media Type
* 500 - Internal Server Error
* 501 - Method Not Implemented
* 502 - Bad Gateway
* 503 - Service Temporarily Unavailable
* 504 - Gateway Time-out
* 505 - HTTP Version Not Supported

To create a custom error page for a 501 error just do the same:

ErrorDocument 501 /501.html


As you say it only happens sometimes, then at least you have the option of redirecting your members to an alernative page on your site.

Good Luck
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01593 seconds
  • Memory Usage 1,768KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete