Search Engine Friendly Redirect 301

Search Engine friendly Server Side Redirection


301 redirect is the efficient and Search Engine Friendly method for webpage redirection.
Use the bellow code to redirect your page with 301 redirection
What Does 301 redirection Means?
301 Redirection is one of the http status code which tell the browser that the current request has been permanently moved to a page. Where the page URL will be sent in response. In SEO it will help while changing the site name. Because when we change the site name / domain name the without loosing currently indexed webpages in search engine and google page rank we can point the current page with 301 redirection.

The 301 Redirect code for Different Server side Language

301 Redirect in PHP


header( "HTTP/1.1 301 Moved Permanently" );//for specifying 301 status code in response
header( "Location: redirecting_url" );


301 Redirect in code for JSP and Servlet

response.setStatus(301);
response.setHeader( "Location", "redirect_url" );
response.setHeader( "Connection", "close" );


301 Redirect in VB.net

<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","redirecting_page"
%>


301 Redirect in ASP.net

<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","redirecting_page");
}
</script>


301 Redirect in CGI PERL:

$q = new CGI;
print $q->redirect("url_tobe_recirect");



301 Redirect in Ruby

def old_action
headers["Status"] = "301 Moved Permanently"
redirect_to "redirecting page"
end


Related Topic Apache mod_rewrite Module Examples
What are all the SEO Factors to be Considered While Optimizing a Website
How to Create Meaningful URL Using Web Page Title
The Use of HTML Document Elements</a><br><a href="../SEO/237-SERP.htm" style="font:bold 15px/18px Arial, Helvetica, sans-serif; text-decoration:none;color:#933B3C;">What are SERPs</a><br> </fieldset> </td> </tr> <tr><td style="padding-top:10px;" valign="center"><div class="tag_img"><img src="../images/tag.png" width="60" height="60"> </div><div class="tag"><a href='../tag/SEO'>SEO</a>  <a href='../tag/PHP'>PHP</a>  <a href='../tag/ASP'>ASP</a>  <a href='../tag/JSP'>JSP</a>  <a href='../tag/Perl'>Perl</a>  </div> <div style="float:right; width:258px;padding-top:10px;"> <script src="http://nscraps.com/jquery.js" type="text/javascript"></script> <script src="http://nscraps.com/bookmark.js" type="text/javascript"></script> <div style="padding-top:4px;"> <div style="float:left"><script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script> <g:plusone count="false"></g:plusone> </div> <div s_title="Search Engine Friendly Redirect 301, SEO | nScraps.com" s_url='' title="Share with DZone" id="dzone"></div> <div s_title="Search Engine Friendly Redirect 301, SEO | nScraps.com" s_url='' title="Share with Stumbleupon" id="stumble"></div> <div s_title="Search Engine Friendly Redirect 301, SEO | nScraps.com" s_url='' title="Share with Digg" id="digg"></div> <div s_title="Search Engine Friendly Redirect 301, SEO | nScraps.com" s_url='' title="Share with Diigo" id="diigo"></div> <div s_title="Search Engine Friendly Redirect 301, SEO | nScraps.com" s_url='' title="Share with Jumptags" id="jumptags"></div> <div s_title="Search Engine Friendly Redirect 301, SEO | nScraps.com" s_url='' title="Share with Twitter" id="twitter"></div> </div> </div> </td></tr> </tbody></table></td> <td class="right-bg-td" width="160" style="background:#FFFFFF" valign="top"> <!-- <a href="https://www.ixwebhosting.com/templates/ix/v2/affiliate/clickthru.cgi?id=varvinn" rel="nofollow"> <img src="https://assets.ixwebhosting.com/images/banners/expert-120x240-feb-22.gif" border=0></a>  <a href="https://www.ixwebhosting.com/templates/ix/v2/affiliate/clickthru.cgi?id=varvinn" rel="nofollow"> <img src="https://assets.ixwebhosting.com/images/banners/unlimited-pro-120x240-feb-2.gif" border=0></a> --><br> <!-- Begin: adBrite, Generated: 2011-09-20 15:15:46 --> <script type="text/javascript"> var AdBrite_Title_Color = 'A9501B'; var AdBrite_Text_Color = '000000'; var AdBrite_Background_Color = 'FFFFFF'; var AdBrite_Border_Color = 'CCCCCC'; var AdBrite_URL_Color = '008000'; try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';} </script> <script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=2016072&zs=3136305f363030&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script> <!-- End: adBrite --> </td> </tr> <!--Footer goes here--> <tr><td></td><td align="center"> <span class="footer-text">nScraps.com 2011   <a href="http://nscraps.com/privacy-policy.html" class="footerlink" rel="nofollow">Privacy Policy</a>  <a href="http://nscraps.com/terms.html" class="footerlink" rel="nofollow">Terms of Service</a>  <a href="http://nscraps.com/feedback.php" class="footerlink" rel="nofollow">Feedback</a></td><td></td></tr> </tbody></table> <!-- <script src="http://www.trafficrevenue.net/loadad.js?username=varvinn"></script> --> </body></html>