<?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>kdmurray.blog &#187; web</title>
	<atom:link href="http://kdmurray.net/tag/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://kdmurray.net</link>
	<description>The crossroads of life and tech</description>
	<lastBuildDate>Tue, 07 Feb 2012 20:34:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Redirecting Your Website (URL Redirection)</title>
		<link>http://kdmurray.net/2009/03/17/redirecting-your-website-url-redirection/</link>
		<comments>http://kdmurray.net/2009/03/17/redirecting-your-website-url-redirection/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 09:05:00 +0000</pubDate>
		<dc:creator>kdmurray</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[meta]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[repoint]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web server]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://kdmurray.net/?p=594</guid>
		<description><![CDATA[It&#8217;s late, and I&#8217;m tired, so this is gonna be a short post.  I got a question from @Mattoid12 on twitter tonight about how to redirect a website.  I&#8217;m going to show three ways, and then provide a link to a site which shows every conceivable way of redirecting a website. .htaccess File If you [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s late, and I&#8217;m tired, so this is gonna be a short post.  I got a question from <a href="http://twitter.com/mattoid12" target="_blank">@Mattoid12</a> on twitter tonight about how to redirect a website.  I&#8217;m going to show three ways, and then provide a link to a site which shows every conceivable way of redirecting a website.</p>
<h3>.htaccess File</h3>
<p>If you have access to edit your .htaccess file (FTP or SSH access to your server) put this line at the top.  It will redirect the local url &#8220;/&#8221; (root) to the new location.  More on <a href="http://en.wikipedia.org/wiki/HTTP_301" target="_blank">HTTP 301</a> here.  I&#8217;ve discussed this in more detail on <a href="http://kdmurray.net/2009/01/23/moving-redirect-with-htaccess-and-301/" target="_blank">a previous post</a>.</p>
<p><code>Redirect 301 / http://yournewwebsite.net/</code></p>
<h3>HTML Meta Tag</h3>
<p>The example below will redirect a page to the new location after two seconds.  This code should be placed at the top of your index or default page.</p>
<p><code>&lt;meta http-equiv="refresh" content="2;url=http://yournewwebsite.net"&gt;</code></p>
<h3>PHP Redirect</h3>
<p>This method is sort of a combination of the above two approaches.  It will perform an instant redirect and return HTTP 301 to the browser.  This code needs to be entered in your index.php file.</p>
<p><code>&lt;?<br />
Header( "HTTP/1.1 301 Moved Permanently" );<br />
Header( "Location: http://yournewwebsite.net" );<br />
?&gt; </code></p>
<p>For examples of a large number of other possible redirects are available on <a href="http://www.webconfs.com/how-to-redirect-a-webpage.php" target="_blank">webconfs.com</a>.</p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://kdmurray.net/2009/03/17/redirecting-your-website-url-redirection/&via=kdmurray&text=Redirecting Your Website (URL Redirection)&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://kdmurray.net/2009/03/17/redirecting-your-website-url-redirection/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Object Caching 477/499 objects using disk: basic

Served from: kdmurray.net @ 2012-02-08 17:24:27 -->
