<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TomDoepker.com &#187; SEO</title>
	<atom:link href="http://tomdoepker.com/category/seo/feed/" rel="self" type="application/rss+xml" />
	<link>http://tomdoepker.com</link>
	<description>The web development portfolio of Tom Doepker, web site designer, developer and team lead</description>
	<lastBuildDate>Fri, 30 Jul 2010 13:54:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>301 Redirects</title>
		<link>http://tomdoepker.com/2009/07/07/301-redirects/</link>
		<comments>http://tomdoepker.com/2009/07/07/301-redirects/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 12:00:27 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://tomdoepker.com/2009/07/07/301-redirects/</guid>
		<description><![CDATA[What do you do when you redevelop a website using a different coding language and you have a significant amount of links to your site that reference the old home page? I recently upgraded a website to ASP.Net. The old site was not only popular (20-25K hits a month), it had been in existence for [...]]]></description>
			<content:encoded><![CDATA[<p>What do you do when you redevelop a website using a different coding language and you have a significant amount of links to your site that reference the old home page?</p>
<p>I recently upgraded a website to ASP.Net. The old site was not only popular (20-25K hits a month), it had been in existence for eight years, so it was no surprise that there were plenty of old links directed to the old home page, “default.php”.</p>
<p>After submitting the site changes to the search engines, I needed to account for folks who had specified the old home page file with their link to our site. I first added in <a href="http://msdn.microsoft.com/en-us/library/ms228302.aspx" title="Read more about URL mapping in the web.config">URL mappings</a>, but I have had less than stellar results with them. It wasn’t the “one hundred percent solution” I wanted.</p>
<p>My research pointed me to 301 redirects. Despite the fact that my sites are coded in C sharp, .Net is nice enough to let me use VB code I found as well. Since all that was really involved was creating a dummy page that would attract the old requests and redirect them appropriately, the two sets of code never see each other anyway.</p>
<p>There are three steps:</p>
<ol>
<li>Create a blank text document named the same as the page in question.</li>
<li>Add the code below.</li>
<li>Post the file to your website directory</li>
</ol>
<p>Create a blank text document and name it the same as your offending page, in my case “default.php”.  Then include the code below, replacing my dummy location with the new one.</p>
<blockquote><p>&lt;%@ Language=&#8221;VBScript&#8221; %&gt;<br />
&lt;%<br />
Response.Status=&#8221;301 Moved Permanently&#8221;<br />
Response.AddHeader&#8221;Location&#8221;,&#8221;<strong>http://URLGoesHere/</strong>&#8221;<br />
%&gt;</p></blockquote>
<p>Add the new dummy file to your site’s directory and you’re all set. A further step would be to notify those sites that send you a lot of traffic about the update, but this allows you to handle your side quite efficiently.</p>
]]></content:encoded>
			<wfw:commentRss>http://tomdoepker.com/2009/07/07/301-redirects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
