PR Related - How to use 301 redirect and How important 301 redirect is?

In ur website building, we often up against these kind of problems: change domain, restructure the webpage, sometimes also change .php into .html or shtml, change permalink. In these kind of situation, if we dun do 301 redirect the visitors bookmark this links visit ur site will appear the 404 error page. We have a huge lost in unique visitors. Furthermore, not friendly to the search engines, the worth situation is lost the pr (page rank) or become pr (page rank) 0. A lot of friend complain to me that they lost their pr, when search their site in the search engines; most of them have the situation above and not proper using the 301 redirect. 301 redirect is also call the permanent redirect (the most friendly tool toward the search engine).

Here in this post i will also give a few code about How to use 301 redirect which is quite simple in the seo sites.

  • 301 redirect - Permanently Moved which is the suggest method and always works for seo
  • 302 redirect - Temporarily Moved - Black hat method for search engine cheating which is using in the past years (not suggested for everyone)
  • meta fresh - change meta content to finish the redirect

Most and the easier code for 301 redirect in Apache server:

.htaccess file amend, if dun have .htaccess in the folder, create one using text pad.

Redirect permanent / http://www.siteseo.org/ ; redirect the whole content under ur site to http://www.siteseo.org/
Redirect permanent /old.html http://www.siteseo.org/new-url/ ; redirect old.html to new http://www.siteseo.org/new-url/

Php header 301 redirect

<? Header( “HTTP/1.1 301 Moved Permanently” );
Header( “Location: http://seo.highdiy.com” );?>

Asp 301 redirect

<%@ Language=VBScript %>
<% Response.Status=”301 Moved Permanently” Response.AddHeader “Location”, ” http://seo.highdiy.com”>

Asp.net 301 redirect

<script runat=”server”>
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = “301 Moved Permanently”;
Response.AddHeader(”Location”,”http://seo.highdiy.com”);
}
</script>

Feel free to ask me any questions…thanks for reading`~