My status
Feb 4th

Status Codes

written by: admin

Reason-Phrases and HTTP Status Codes

10.1 - 1xx Informational
Status Code Reason Phrase
	100  Section 10.1.1:  Continue
	101  Section 10.1.2:  Switching Protocols
10.2 - 2xx Successful
Status Code Reason Phrase
	200  Section 10.2.1:  OK
	201  Section 10.2.2:  Created
	202  Section 10.2.3:  Accepted
	203  Section 10.2.4:  Non-Authoritative Information
	204  Section 10.2.5:  No Content
	205  Section 10.2.6:  Reset Content
	206  Section 10.2.7:  Partial Content
10.3 - 3xx Redirection
Status Code Reason Phrase
	300  Section 10.3.1:  Multiple Choices
	301  Section 10.3.2:  Moved Permanently
	302  Section 10.3.3:  Found
	303  Section 10.3.4:  See Other
	304  Section 10.3.5:  Not Modified
	305  Section 10.3.6:  Use Proxy
	307  Section 10.3.8:  Temporary Redirect
10.4 - 4xx Client Error
Status Code Reason Phrase
	400  Section 10.4.1:  Bad Request
	401  Section 10.4.2:  Unauthorized
	402  Section 10.4.3:  Payment Required
	403  Section 10.4.4:  Forbidden
	404  Section 10.4.5:  Not Found
	405  Section 10.4.6:  Method Not Allowed
	406  Section 10.4.7:  Not Acceptable
	407  Section 10.4.8:  Proxy Authentication Required
	408  Section 10.4.9:  Request Time-out
	409  Section 10.4.10: Conflict
	410  Section 10.4.11: Gone
	411  Section 10.4.12: Length Required
	412  Section 10.4.13: Precondition Failed
	413  Section 10.4.14: Request Entity Too Large
	414  Section 10.4.15: Request-URI Too Large
	415  Section 10.4.16: Unsupported Media Type
	416  Section 10.4.17: Requested range not satisfiable
	417  Section 10.4.18: Expectation Failed
10.5 - 5xx Server Error
Status Code Reason Phrase
	500  Section 10.5.1:  Internal Server Error
	501  Section 10.5.2:  Not Implemented
	502  Section 10.5.3:  Bad Gateway
	503  Section 10.5.4:  Service Unavailable
	504  Section 10.5.5:  Gateway Time-out
	505  Section 10.5.6:  HTTP Version not supported
Mar 23rd

301 Redirects and Custom Error Pages

written by: Lee Johnson

The .htaccess file has a variety of purposes and all SEO’s should have a basic knowledge of these. In this post I’m going to tell you how to create an .htaccess file and how to setup two of the most frequently used .htaccess features – 301 redirects and custom 404 error pages.

Creating an .htaccess file

Firstly, a few points about the .htaccess file:

• The .htaccess file is a plain text file which should be created using Notepad or Simple Text.
• Each instruction should appear on its own line.
• You will need to save the file as .htaccess. (The file name can be quite confusing as it appears to look like a file extension. It is NOT an extension and the biggest mistake that most people make is not adding the full stop at the start.)
• You may need to manually rename the file after you create it as Notepad will only allow you to save files as “something.txt”.
• The file should be uploaded to your sites route directory.

301 Redirects

As most of you will probably know, when you change the URL of a page all of the PageRank, search engine positions, bookmarks and in-bound links that the page has established will be lost or broken. The 301 redirect is the only type of re-direct which will successfully solve this problem.

A 301 redirect has a very specific job. It tells the search engines that you have permanently moved a page to a new URL and it is essential when you’ve changed things such as page name, domain name, site sub folders or file extension.

The .htaccess code for a 301 redirect is very simple:

redirect 301 /old/old.htm http://www.url.com/new.htm

Although this code is very simple I’ll break it down for you. Firstly you need to specify that it’s a “redirect 301”, leave a space, write the old URL (which should be relative), leave a space, write the absolute URL of the new page and that’s it!

A 404 Page Not Found Error Page

I’m sure many of you have seen the “The page cannot be found” page which appears when you type a URL in wrong or there is an error in a sites navigation. This page is usually a standard IE, Fire Fox or server page.

Using .htaccess we can create our own “The page cannot be found” page which appears when visitors make mistakes in their navigation. The custom page will also appear if you have made any mistakes with your site navigation or programming.

The benefit of a custom error page is that it has all the features/menu etc of your site. This is beneficial as it reduces the chances of your visitor leaving, if you have an e-commerce site you may still be able to keep the sale and it looks good!

The code that you need to add to your .htaccess file is:

ErrorDocument 404 /directory/my_error_page.html

Although it looks simple, I’ll break it down again. Firstly you write “ErrorDocument 404” which tells the browser that every time a 404 error occurs it needs to re-direct the user to your specially created error page. Leave a SINGLE SPACE then give the relative location of your error page. Easy peasy!

More uses of .htaccess to come!