<?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>bloody error &#187; moving domain</title>
	<atom:link href="http://www.bloodyerror.com/tag/moving-domain/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bloodyerror.com</link>
	<description>hope something here may help you...</description>
	<lastBuildDate>Thu, 14 Jan 2010 17:29:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Simple .htaccess Redirect guide</title>
		<link>http://www.bloodyerror.com/2009/06/simple-htaccess-redirect-guide/</link>
		<comments>http://www.bloodyerror.com/2009/06/simple-htaccess-redirect-guide/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 18:05:36 +0000</pubDate>
		<dc:creator>Jeevan</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[moving domain]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.bloodyerror.com/?p=15</guid>
		<description><![CDATA[It won&#8217;t take longer to find a simple .htaccess redirect in google. Many has written many different types of redirect, some are confusing and some are others&#8230; It took me hours to figure out what and how to setup a simple redirect. There is a comprehensive guide provided by Apache for .htaccess , I Suggest [...]]]></description>
			<content:encoded><![CDATA[<p>It won&#8217;t take longer to find a simple .htaccess redirect in google. Many has written many different types of redirect, some are confusing and some are others&#8230; It took me hours to figure out what and how to setup a simple redirect. There is a comprehensive guide provided by <a href="http://httpd.apache.org/docs/1.3/howto/htaccess.html" target="_blank">Apache for .htaccess </a>, I Suggest you read this for more information on how to use .htaccess in your webhosting account.</p>
<h3>Know what HTTP status to give</h3>
<p>Before we begun, You should be aware of what type of HTTP code to give when redirecting pages on server side.</p>
<ul>
<li><strong>301</strong> = Page is Permanently Moved to new location</li>
<li><strong>302</strong> = Page found, But temporarily moved to new location (This is useful when you want to redirect users while doing some updates or maintaining site).</li>
</ul>
<h3>Move a Single Page</h3>
<pre class="brush: plain;">Redirect 301 /oldpage.html http://www.example.com/newpage.html</pre>
<p>This simple code will Redirect oldpage.html to given url on the right</p>
<h3>Move Entire Site</h3>
<pre class="brush: plain;">Redirect 301 / http://www.newsite.com/</pre>
<p>This code is useful when you want to move an Entire site to a new domain. All request will be redirect to new url for example If a user request <span style="color: #339966;">http://www.oldsite.com/folder/page.html</span> this code will redirect that user to <span style="color: #ff6600;">http://www.newsite.com/</span><span style="color: #339966;">folder/page.html</span> . As you can see that all requests will be send to new url as well.</p>
<h3>Rename File Extension</h3>
<pre class="brush: plain;">RedirectMatch 301 (.*)\.html$ http://www.example.com$1.php</pre>
<p>This will simply change all .html requests into .php on anywhere on the site.</p>
<h3>Redirect a Folder to another Folder or site</h3>
<pre class="brush: plain;">RedirectMatch 301 /folder$ http://www.example.com</pre>
<p>This will redirect <span style="color: #008000;">http://www.oldsite.com/folder</span> to <span style="color: #ff6600;">http://www.example.com</span>. If you want the request followed by folder to be send to new site, you need to add <span style="color: #008000;">$1</span> at the end of new URL (<span style="color: #008080;">RedirectMatch 301 /folder$ http://www.example.com/$1</span>).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloodyerror.com/2009/06/simple-htaccess-redirect-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
