Latest Entry
SEO Tool – Search Engine Friendly Redirects
Dec 7, 2009 Search Engine Optimization Leave a comment
If you need to move a webpage or website and don’t want to lose your page ranking, then use a 301 redirect. It is extermely easy to implement a 301 redirect and will help you retain your Search ranking even though the URL has changed.
Below are examples in different languages
ASP
<%@ Language=VBScript %>
<%
Response.Status=”301 Moved Permanently”
Response.AddHeader “Location”,”http://www.your_new_url.com/”
%>
ASP .NET
<script runat=”server”>
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = “301 Moved Permanently”;
Response.AddHeader(”Location”,”http://www.your_new_url.com”);
}
</script>
JSP (Java)
<%
response.setStatus(301);
response.setHeader( “Location”, “http://www.your_new_url.com/” );
response.setHeader( “Connection”, “close” );
%>
strong>ColdFusion
<.cfheader statuscode=”301″ statustext=”Moved permanently”>
<.cfheader name=”Location” value=”http://www.your_new_url.com”>
PHP
<?
Header( “HTTP/1.1 301 Moved Permanently” );
Header( “Location: http://www.your_new_url.com” );
?>
Recent Post
- Google WebMaster Tools – SiteMap Submission
- Google SEO effort is working
- Classic ASP – Sending Mail using CDO
- Watching an interesting video on keyword…
- Chapter 2 Landersweb.com SEO – Keywords, keywords, keywords, the start of any SEO effort
- Chapter 1 LandersWeb.com SEO – Google SiteMap
- Welcome fellow Google Page One seekers
Recent Comments
- Sohbet:thanks for web pages thanks..
- electromozzo:Как сказал один мудрый еврей -
- saxyavefata:
- feetblog:thank you soooooo much for thi
- Render:+100
- nunguttlobvat:
- dodge 14:dodge charger 09 auto
- femdom:Thx
- buy acai online:OK. -------------------------
- gaybdsm:Awesome!