500 - Internal Server Error
Smart URL's
When writing an error document or error page use Folders and not direct url's. Why?
Because you may wont to change your programming styles or add a script to process the
error documents at some point, this way you can change the file name without adding
processing time to the servers CPU and ram, speeding up the page to client process.
.htaccess File Sample.
Below we have placed an example of the .htaccess file, you can highlight the code
and paste it inside a text file (error.txt) upload it using FTP (file transfer protocol) and rename the file error.txt --> .htaccess
the server will process the request and rename the file for you. If you dont know how to transfer it to .htaccess, we
can provide you with a downloadable .htaccess for you to use via email, just open it in a text file editor
like Notepad and change the URL after the corresponding error number, ensure their is one space after
the corresponding error number and no space after the URL. Each error document must be placed on a new line,
otherwise it will make your whole website stop working. If you got an error email us for free advise.
Your current host may not support .htaccess files.
ErrorDocument 400 /error_document/400/
ErrorDocument 401 /error_document/401/
ErrorDocument 403 /error_document/403/
ErrorDocument 404 /error_document/404/
ErrorDocument 408 /error_document/408/
ErrorDocument 500 /error_document/500/
Later on in our tutorials we will look at Mod Re-write and redirection using .htaccess for telling the user-agent
the webpage still exsist's but has moved to another location, also search engines will know your pages are not
lost forever but moved to a new position with in the directory, pickup the new page and rank it as requested.
A must see article so bookmark us today!
All possible error codes:
100 => 'Continue',
101 => 'Switching Protocols',
200 => 'OK',
201 => 'Created',
202 => 'Accepted',
203 => 'Non-Authoritative Information',
204 => 'No Content',
205 => 'Reset Content',
206 => 'Partial Content',
300 => 'Multiple Choices',
301 => 'Moved Permanently',
302 => 'Moved Temporarily',
303 => 'See Other',
304 => 'Not Modified',
305 => 'Use Proxy',
400 => 'Bad Request',
401 => 'Unauthorized',
402 => 'Payment Required',
403 => 'Forbidden',
404 => 'Not Found',
405 => 'Method Not Allowed',
406 => 'Not Acceptable',
407 => 'Proxy Authentication Required',
408 => 'Request Timeout',
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 => 'Not Implemented',
502 => 'Bad Gateway',
503 => 'Service Unavailable',
504 => 'Gateway Timeout',
505 => 'HTTP Version Not Supported',
© 2006 - J.A.L.N