{"id":507,"date":"2011-02-01T09:32:34","date_gmt":"2011-02-01T14:32:34","guid":{"rendered":"https:\/\/hostease.com\/blog\/?p=507"},"modified":"2014-08-01T22:51:44","modified_gmt":"2014-08-02T03:51:44","slug":"301-redirect-a-useful-method","status":"publish","type":"post","link":"https:\/\/www.hostease.com\/blog\/uncategorized\/301-redirect-a-useful-method\/","title":{"rendered":"301 Redirect a Useful Method"},"content":{"rendered":"<p>Many webmasters may have used 301 Redirect which is regarded as one of the most useful function on website management. It\u2019s the most efficient and Search Engine Friendly method for redirection. If you want to redirect one site or page to another, 301 Redirect must be a safe way. The code &#8220;301&#8221; has its specific meaning, which is interpreted as &#8220;permanently&#8221;. Obviously 301 redirect is used to indicate that a page has permanently moved.<\/p>\n<p>Suppose I have a several years old domain with high rank and a lot of quality back links. Now, I want to change the old domain name to a new one that I just registered. If I just change the domain name without any other steps, all I have done before will be wasted. So how to automatically redirect to a new domain when visitors link to the old domain? I think 301 Redirect can do me much favor. If I create a 301 redirect from old domain to new domain, the outcome would be different. That is because all valuable traffic will be transferred to the new domain.<\/p>\n<p>How to create a 301 redirect? In CPanel, there is a button named Redirects which is the entrance for creating 301 redirects, maybe it\u2019s the easiest way on redirection in HostEase\u2019s server. Generally, we need choose 301 or 302 when we create Redirect. Comparing with 301, the code \u201c302\u201d means \u201ctemporary\u201d.<\/p>\n<p>In addition to this way, adding codes in .htaccess file in web server is another way to implement 301 Redirect. The codes are shown as following.<\/p>\n<p>CODE:<br \/>\nRedirect 301 \/old.html http:\/\/www.domain.com\/new.html<\/p>\n<p>These codes show that once someone visits the old.html page, it will automatically be redirected to new.html page. Please note the format; the former path is relative while the later is absolute. Don\u2019t confuse this two.<\/p>\n<p>Another way is to use Mod_Rewrite for 301 Redirect. Sometimes, you may want to change a new domain for your website. However, you don\u2019t want to waste the traffic and PR value of your old domain.Then you can use this way to make it in .htaccess file.In this way, you can make full use of the traffic and PR value of your old domain so that it\u2019s not wasted.<\/p>\n<p>CODE:<br \/>\nRewriteEngine on<br \/>\nRewriteCond %{HTTP_HOST} ^olddomain\\.com$ [NC]<br \/>\nRewriteRule ^(.*)$ http:\/\/newdomain.com\/$1 [L,R=301]<\/p>\n<p>These codes make all traffic to olddomain.com be redirected to newdomain.com. That\u2019s so helpful for site\u2019s rank.<\/p>\n<p>It\u2019s convenient to create 301 redirects on our server, dear friends, do you want to have a try?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many webmasters may have used 301 Redirect which is regarded as one of the most useful function on website management. It\u2019s the most efficient and Search Engine Friendly method for redirection. If you want to redirect one site or page to another, 301 Redirect must be a safe way. The code &#8220;301&#8221; has its specific &#8230; <a title=\"301 Redirect a Useful Method\" class=\"read-more\" href=\"https:\/\/www.hostease.com\/blog\/uncategorized\/301-redirect-a-useful-method\/\" aria-label=\"Read more about 301 Redirect a Useful Method\">Read more<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[149,283],"class_list":["post-507","post","type-post","status-publish","format-standard","hentry","tag-301-redirect","tag-domain-2"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.hostease.com\/blog\/wp-json\/wp\/v2\/posts\/507","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostease.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostease.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostease.com\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostease.com\/blog\/wp-json\/wp\/v2\/comments?post=507"}],"version-history":[{"count":0,"href":"https:\/\/www.hostease.com\/blog\/wp-json\/wp\/v2\/posts\/507\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hostease.com\/blog\/wp-json\/wp\/v2\/media?parent=507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostease.com\/blog\/wp-json\/wp\/v2\/categories?post=507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostease.com\/blog\/wp-json\/wp\/v2\/tags?post=507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}