<?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>SEO Dubai &#187; 301 redirect</title>
	<atom:link href="http://www.seodubai.org/tag/301-redirect/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.seodubai.org</link>
	<description>Organic Search Engine Optimization</description>
	<lastBuildDate>Mon, 11 Oct 2010 11:56:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Basic Redirect using 301 Permanent Redirect.</title>
		<link>http://www.seodubai.org/news/basic-redirect-using-301-permanent-redirect/</link>
		<comments>http://www.seodubai.org/news/basic-redirect-using-301-permanent-redirect/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 06:32:55 +0000</pubDate>
		<dc:creator>Jon Edward Santillan</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[301 redirect]]></category>
		<category><![CDATA[how to redirect 301]]></category>

		<guid isPermaLink="false">http://www.seodubai.org/?p=11</guid>
		<description><![CDATA[New domain name? Need to change a file name? Hierarchy of your servers directory structure change? meta http-equiv=&#34;refresh&#34;&#8230; is highly frowned on by search engines and is commonly used by spammers. As such, THIS SHOULD BE AVOIDED. A 301 Redirect as it is commonly referred to will allow you to make these changes without compromising [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><strong>New domain name?</strong><strong><br /> Need to change a file name?</strong><strong><br /> Hierarchy of your servers directory structure change?</strong></p>
<p> meta http-equiv=&quot;refresh&quot;&#8230; is highly frowned on by search engines and is  commonly used by spammers. As such, THIS SHOULD BE AVOIDED.</p>
<p> A 301 Redirect as it is commonly referred to will allow you to make these  changes without compromising your hard earned SEO results.</p>
<p><span id="more-11"></span>Using the Apache web server, fortunately this is a simply task.</p>
<p>There are a few different places you can set various &#39;Redirect&#39; directives such  as your servers main configuration file (typically httpd.conf) or within a  &#39;Virtual Host&#39; container inside one of your server configuration files. The  final method and the one we will be discussing here is using your servers  directory Auth file (AKA: .htaccess).</p>
<p> The first thing you do is create a file named .htaccess</p>
<p> There are a couple different way to approach this but in it most simple form you  can just issue a &#39;Redirect&#39; request in your .htaccess file like so:</p>
<p> Redirect /foo http://foobar.com/foo</p>
<p> In this example if the client requests<br /> http://myserver.com/foo/foobar.txt,</p>
<p> it will be told to access<br /> http://foobar.com/foo/foobar.txt instead.</p>
<p> Now this is not quite complete yet, since we need to specifically send a 301  status code. Without the status argument &quot;Redirect&quot; will send a temporary  redirect status (302). So we simply take the above example and change it to:</p>
<p> Redirect 301 /foo http://foobar.com/foo</p>
<p> OR</p>
<p> Redirect permanent /foo http://foobar.com/foo</p>
<p> And there is also a specific &#39;RedirectPermanent&#39; directive as well so you could  just as easily say:</p>
<p> RedirectPermanent /foo http://foobar.com/foo</p>
<p> So far so good? Excellent. So now you ask what if I want to change ALL my .htm  files to .html. Introducing &#39;RedirectMatch&#39; which makes use of standard regular  expression syntax.</p>
<p> RedirectMatch (.*)\.htm$ http://myserver.com$1.html</p>
<p> Going into an in depth explanation of regular expression if beyond the scope of  this tutorial but a quick Google search for &quot;Perl compatible regular expression  syntax&quot; should set you on your way.</p>
<p> What the above example does is match any character &#39;.&#39; any number of times &#39;*&#39;,  i.e., that is it will match everything. (.*) the parenthesis group the result  into a variable which we will use with a back-reference ($1) later in the  directive. Next, &#39;\&#39; simply escapes the following &#39;.&#39;. Since &#39;.&#39; has special  meaning in regular expression syntax we need to escape it if we want to use it  in the literal sense, &#39;\&#39; provides the escape sequence. Next is the &#39;.htm&#39; which  we know is a static part of the search string we&#39;re looking for followed by &#39;$&#39;  which simply marks the end of the pattern in a regular expression (regex). So  the above example takes any file with an .htm extension and redirects the client  to the same file at the location specified, i.e., http://myserver.com$1.html</p>
<p> But wait, what&#39;s that &#39;$1&#39;? Well remember we said we were going to store a  variable for use in a back reference later, well here it is. The &#39;$1&#39; simply  says that whatever was in (.*) is now represented by $1</p>
<p> So, the client request for example foobar.htm, the above directive matches this  and redirects the client to http://myserver.com/foobar.html because &#39;foobar&#39; is  stored in &#39;$1&#39;. Just as with &#39;Redirect&#39;, &#39;RedirectMatch&#39; takes a status argument  so to issue a 301 (permanent) redirect we do this:</p>
<p> RedirectMatch 301 (.*)\.htm$ http://myserver.com$1.html</p>
<p> Another method we can use is via mod_rewrite. This requires that the mod_rewrite  module is active on your webserver. It usually is and is done by the system  administrators when they installed the webserver. mod_rewrite is a very powerful  URL re-writing engine and we will only by scratching a hair on its head here.</p>
<p> Again, in your .htaccess file</p>
<p> RewriteEngine ON<br /> RewriteRule ^(.*)$ http://mynewdomain.com/$1 [R=301,L]</p>
<p> The above example will re-map your old domain to a new one and issue a 301  status code (permanent redirect). So a request for</p>
<p> http://olddomain.com/foobar.html will go to</p>
<p> http://mynewdomain.com/foobar.html</p>
<p> If you simply want to redirect all requests regardless of the page requested to  the new domain you could use:</p>
<p> RewriteRule /.* http://mynewdomain.com/ [R=301,L]</p>
<p> In this case no matter what file or directory is requested they will all go to</p>
<p> http://mynewdomain.com/ i.e., http://myolddomain.com/foobar.html</p>
<p> will go to http://mynewdomain.com/</p>
<p> The [R=301,L] means redirect the client and send a 301 status code (R=301) and  make this the last rule (L).</p>
<p> Whichever method you decide on, once completed upload the resulting file to your</p>
<div class="shr-publisher-11"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.seodubai.org/news/basic-redirect-using-301-permanent-redirect/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Moving website using 301 redirect</title>
		<link>http://www.seodubai.org/seo/moving-website-using-301-redirect/</link>
		<comments>http://www.seodubai.org/seo/moving-website-using-301-redirect/#comments</comments>
		<pubDate>Sun, 20 Apr 2008 04:36:29 +0000</pubDate>
		<dc:creator>Jon Edward Santillan</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[301 redirect]]></category>

		<guid isPermaLink="false">http://www.seodubai.org/?p=7</guid>
		<description><![CDATA[If you are planning to move your website to different domain without hurting your website performance in major search engine results especially GOOGLE? The first objective that you need to do is to switch unseen and visible to the user and to make sure that major search engine specially Google that your new created pages [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>If you are planning to move your website to different domain without hurting your website performance in major search engine results especially GOOGLE?</p>
<p> The first objective that you need to do is to switch unseen and visible to the user and to make sure that major search engine specially Google that your new created pages must get the same quality signals as the pages on your own website. Every time you move your website to different domain, darned 404 File Not Found can hurt the user experience and negatively force your site&#39;s performance in major search engine specially Google search results.</p>
<p>Let&#39;s take an example moving your domain to another one. (www.seodubai.com to www.seodubai.org ) and this is different when you moving your IP&#39;s.&nbsp;</p>
<p><span id="more-7"></span> </p>
<ul style="color: #000000">
<li>Test the move process by moving the contents of one directory or subdomain first. Then use a <a href="http://en.wikipedia.org/wiki/301_redirect">301 Redirect</a> to permanently redirect those pages on your old site to your new site. This tells Google and other search engines that your site has permanently moved.</li>
</ul>
<ul style="color: #000000">
<li>Once this is complete, check to see that the pages on your new site are appearing in Google&#39;s search results. When you&#39;re satisfied that the move is working correctly, you can move your entire site. Don&#39;t do a blanket redirect directing all traffic from your old site to your new home page. This will avoid 404 errors, but it&#39;s not a good user experience. A page-to-page redirect (where each page on the old site gets redirected to the corresponding page on the new site) is more work, but gives your users a consistent and transparent experience. If there won&#39;t be a 1:1 match between pages on your old and new site, try to make sure that every page on your old site is at least redirected to a new page with similar content.</li>
</ul>
<ul style="color: #000000">
<li>If you&#39;re changing your domain because of site rebranding or redesign, you might want to think about doing this in two phases: first, move your site; and second, launch your redesign. This manages the amount of change your users see at any stage in the process, and can make the process seem smoother. Keeping the variables to a minimum also makes it easier to troubleshoot unexpected behavior.</li>
</ul>
<ul style="color: #000000">
<li>Check both <a href="http://www.google.com/support/webmasters/bin/answer.py?answer=55281">external and internal links to pages on your site</a>. Ideally, you should contact the webmaster of each site that links to yours and ask them to update the links to point to the page on your new domain. If this isn&#39;t practical, make sure that all pages with incoming links are redirected to your new site. You should also check internal links within your old site, and update them to point to your new domain. Once your content is in place on your new server, use a link checker like <a href="http://home.snafu.de/tilman/xenulink.html">Xenu</a> to make sure you don&#39;t have broken legacy links on your site. This is especially important if your original content included absolute links (like www.example.com/cooking/recipes/chocolatecake.html) instead of relative links (like &#8230;/recipes/chocolatecake.html).</li>
</ul>
<ul style="color: #000000">
<li>To prevent confusion, it&#39;s best to make sure you retain control of your old site domain for at least 180 days.</li>
</ul>
<ul style="color: #000000">
<li>Finally, keep both your new and old site verified in Webmaster Tools, and review crawl errors regularly to make sure that the 301s from the old site are working properly, and that the new site isn&#39;t showing unwanted 404 errors.</li>
</ul>
<p> <span style="color: #000000"> We&#39;ll admit it, moving is never easy &#8211; but these steps should help ensure that none of your good web reputation falls off the truck in the process.</span></p>
<div class="shr-publisher-7"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.seodubai.org/seo/moving-website-using-301-redirect/feed/</wfw:commentRss>
		<slash:comments>0</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: basic

Served from: www.seodubai.org @ 2012-02-09 13:36:19 -->
