Tweet Me! RSS Feed

Posts Tagged ‘htaccess Redirect’

SEO Friendly 301 Redirects

February 3rd, 2008 in SEO Tips

Page redirection can be accomplished very easily and can be well received by users. In order to best satisfy the needs of search engines a 301 redirection is the optimal way to redirect pages across your website. A 301 status code means “moved permanently” and can be accomplished very easily with some slight variations between coding platforms. Ideally, you will want to focus more on the server side redirects. Client side redirects are prone to issues if users or search engine spiders can’t read javascript.

HTML Redirect

<html>
<head>
<title>301 Moved Permanently</title>
<meta http-equiv=”refresh” content=”4;url=http://www.yakiji.com/newpage.html”>
</head>
<body>
<h1>301 Moved Permanently</h1>
This page has moved. You will be automatically redirected to its new location in 4 seconds.
If you aren’t forwarded to the new page,
<a href=”http://www.yakiji.com/newpage.html”>http://www.yakiji.com/newpage.html</a>.
</body>
</html>

ASP Redirect

<%@ Language=VBScript %>
<%
Response.Status=”301 Moved Permanently”;
Response.AddHeader(“Location”,”http://www.yakiji.com/newpage.html”);
Response.End
%>

ASP.NET Redirect (without tracking)

<%@ Page language=”c#” %>
<script runat=”server”>
private void Page_Load(object sender, System.EventArgs e) {
Response.Status = “301 Moved Permanently”;
Response.AddHeader(“Location”, Link);
}
</script>

Read the rest of this entry »

Followers

Recent Comments

  • Dennis: And eehhh what happened to Joe’s in that month ?
  • Joe S: Cool stuff!
  • Jonny Thompson: @Christina – Thanks! BlogWell was fantastic and definitely worth every penny.
  • Jonny Thompson: @Ben – That’s fantastic, I would love to hear more. I’m just starting to get out...
  • Ben Wallace: Jonny, You will find you’re in good company. Many MIMA board members attend SXSW, including Matt...