<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4444363902295273807</id><updated>2011-04-21T10:48:01.985-07:00</updated><category term='How to handle old urls'/><category term='old urls and search engines'/><category term='how to manage old urls'/><category term='old urls redirection'/><title type='text'>expert in seo</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://expertinseo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4444363902295273807/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://expertinseo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>blogmaster</name><uri>http://www.blogger.com/profile/15039947374065931235</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4444363902295273807.post-6111374920075457297</id><published>2007-08-09T23:04:00.000-07:00</published><updated>2007-08-09T23:31:48.156-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to handle old urls'/><category scheme='http://www.blogger.com/atom/ns#' term='how to manage old urls'/><category scheme='http://www.blogger.com/atom/ns#' term='old urls redirection'/><category scheme='http://www.blogger.com/atom/ns#' term='old urls and search engines'/><title type='text'>How to handle old urls - Giving search engine spiders direction with a 301 redirect</title><content type='html'>&lt;h2 align="left"&gt;Scenario&lt;/h2&gt;&lt;br /&gt;    &lt;p align="left"&gt;You are upgrading your web site and as part of the upgrade,      it means moving and renaming particular files.&lt;/p&gt;&lt;br /&gt;    &lt;h2 align="left"&gt;Danger&lt;/h2&gt;&lt;br /&gt;    &lt;p align="left"&gt;Search engines have indexed your entire site and many pages      rank well. By moving and renaming these files, you run the risk of losing a      lot of traffic and leaving visitors to your site who follow a search engine      link with the dreaded &amp;quot;Error 404 - File not found&amp;quot;&lt;/p&gt;&lt;br /&gt;    &lt;h2 align="left"&gt;Strategy 1 - Custom Error Page&lt;/h2&gt;&lt;br /&gt;    &lt;p align="left"&gt;You could &lt;a href="http://www.tamingthebeast.net/articles/customerrorpages.htm"&gt; create a custom error page&lt;/a&gt;.      The problem with this solution is that:&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;a) You will lose rankings on the next search engine update      as the file will appear to be non-existent. It could be some time before the      page in it's new location or with a new name reappears.&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;b) Your web site visitors may be frustrated by the fact that      they then have to dig through your site to find the desired information.&lt;/p&gt;&lt;br /&gt;    &lt;h2 align="left"&gt;Strategy 2 - Meta Refresh&lt;/h2&gt;&lt;br /&gt;    &lt;p align="left"&gt;A meta refresh can be implemented in the &amp;lt;head&amp;gt;      statement of your source code in blank page with the old file name, which      then automatically redirects visitors to the new page. Example:&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;&amp;lt;HEAD&amp;gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;  &amp;lt;META HTTP-EQUIV=&amp;quot;refresh&amp;quot; content=&amp;quot;0;URL=http://www.new.com/new.htm&amp;quot;&amp;gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;  &amp;lt;TITLE&amp;gt;Page has moved&amp;lt;/TITLE&amp;gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;  &amp;lt;/HEAD&amp;gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;&lt;strong&gt;Warning:&lt;/strong&gt; This is a technique often used by spammers      to trick search engines and it should be avoided, unless the page is in a      section of your site that isn't spidered.&amp;nbsp;&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;What the search engine spammers do is to create a page that      is optimized for certain keywords and phrases - it usually has no real      content. The page is then picked up by some search engines, but when a      visitor clicks on the search engine entry, they are redirected to another      site, often unrelated.&amp;nbsp;&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;It's a despicable trick, but thankfully most search engines      have filters to detect this. Using this form of SE deception will see a site      eventually banned or penalized by major players such as Google.&lt;/p&gt;&lt;br /&gt;    &lt;h2 align="left"&gt;Strategy 2 - 301 Redirect&lt;/h2&gt;&lt;br /&gt;    &lt;p align="left"&gt;A 301 redirect is the most efficient and spider/visitor      friendly strategy around for web sites that are hosted on servers running      Apache (check with your hosting service if you aren't sure). It's not that      hard to implement and it should preserve your search engine rankings for that      particular page. If you *have* to change file names or move pages around,      it's the safest option.&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;A 301 redirect is implemented in your .htaccess file.&lt;/p&gt;&lt;br /&gt;    &lt;h2 align="left"&gt;What is a .htaccess file?&lt;/h2&gt;&lt;br /&gt;    &lt;p align="left"&gt;When a visitor/spider requests a web page via any means,      your web server checks for a .htaccess file. The .htaccess file contains      specific instructions for certain requests, including security, redirection      issues and how to handle certain errors.&lt;/p&gt;&lt;br /&gt;    &lt;h2 align="left"&gt;What is a 301 redirect?&lt;/h2&gt;&lt;br /&gt;    &lt;p align="left"&gt;The code &amp;quot;301&amp;quot; is interpreted as &amp;quot;moved      permanently&amp;quot;. After the code, the URL of the missing or renamed page is      noted, followed by a space, then followed by the new location or file name&lt;/p&gt;&lt;br /&gt;    &lt;h2 align="left"&gt;How do I implement a 301 redirect?&lt;/h2&gt;&lt;br /&gt;    &lt;p align="left"&gt;First of all, you'll need to download the .htaccess file in      the root directory of where all your web pages are stored. If there is no      .htaccess      file there, you can create one with Notepad or a similar application. Make      sure when you name the file that you remember to put the &amp;quot;.&amp;quot; at      the beginning of the file name. This file has no tail extension.&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;If there is a .htaccess file already in existence with lines      of code present, be very careful not to change any existing line unless you      are familiar with the functions of the file.&amp;nbsp;&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;Scroll down past all the existing code, leave a line space,      then create a new line that follows this example:&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;redirect 301 /old/old.htm http://www.you.com/new.htm&amp;nbsp;&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;It's as easy as that. Save the file, upload it back into      your web and test it out by typing in the old address to the page you've      changed. You should be instantly and seamlessly transported to the new      location.&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;Notes: Be sure not to add &amp;quot;http://www&amp;quot; to the      first part of the statement - just put the path from the top level of your      site to the page. Also ensure that you leave a single space between these      elements:&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;redirect 301 (the instruction that the page has moved)&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;/old/old.htm (the original folder path and file name)&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;http://www.you.com/new.htm&amp;nbsp; (new path and file name)&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;A more powerful set of directives for manipulating URLs is      contained in the Apache mod_rewrite module,&amp;nbsp; especially useful when      changing domain names and/or folder names containing large numbers of files. Read our      basic tutorial on      the &lt;a href="http://www.tamingthebeast.net/articles3/changing-domain-names.htm"&gt;apache mod_rewrite module&lt;/a&gt;.&lt;/p&gt;&lt;br /&gt;    &lt;h2 align="left"&gt;Redirecting entire sites with 301 &lt;/h2&gt;&lt;br /&gt;    &lt;p align="left"&gt;The  301       directive is quite powerful. You can  redirect       not just single files but entire sites, for example when changing domain      names e.g.&amp;nbsp;&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt; redirect 301       / http://www.you.com/&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;The first &amp;quot;/&amp;quot; indicates that everything from the      top level of the site down should be redirected.&amp;nbsp;As long as you are      using the same paths and filenames, then this option is a very simple way to      perform site redirection in the situation where you have only changed your      domain name.&amp;nbsp;&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;If the site redirection doesn't work for you, check to      ensure you have the trailing &amp;quot;/&amp;quot; on the destination URL. You may      also like to try some of the other suggestions in our basic tutorial on      the &lt;a href="http://www.tamingthebeast.net/articles3/changing-domain-names.htm"&gt;apache mod_rewrite module&lt;/a&gt;.&lt;/p&gt;&lt;br /&gt;    &lt;h2 align="left"&gt;Canonical issues: www vs. non-www&lt;a name="canonical-redirect" id="canonical-redirect"&gt;&lt;/a&gt;&lt;/h2&gt;&lt;br /&gt;    &lt;p align="left"&gt;There's been much talk lately of canonical issues and search      engines. This is where both the www and non-www versions of your pages are      listed in a search engine. This is said to possibly trigger a duplicate      content penalty and/or split page rank. If this is of concern to you, you may wish to use the      following, but be aware that you may suffer a further loss of traffic while      the engines sort out what's what. This example is where you wish to direct      all non-www traffic to www. Add the following to your .htaccess file.&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;Options +FollowSymLinks&amp;nbsp;&lt;br /&gt;&lt;br /&gt;      RewriteEngine on&amp;nbsp;&lt;br /&gt;&lt;br /&gt;      RewriteCond %{HTTP_HOST} ^yoursite.com [NC]&amp;nbsp;&lt;br /&gt;&lt;br /&gt;      RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]&amp;nbsp;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;      Ensure that all your links to folders always end in a trailing / if there is no filename      after that link.&amp;nbsp;&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;&lt;strong&gt;FrontPage users:&lt;/strong&gt;&amp;nbsp; in addition to the above, you'll      also need to change the .htaccess files in:&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;_vti_bin&lt;br /&gt;&lt;br /&gt;      _vti_bin /_vti_adm&lt;br /&gt;&lt;br /&gt;      _vti_bin/ _vti_aut&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;Replace      &amp;quot;Options None&amp;quot; to &amp;quot;Options +FollowSymLinks&amp;quot;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;Those      folders are part of your FrontPage extensions on the server, so you'll need      to gain access via FTP.&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;&lt;strong&gt;Note:&lt;/strong&gt; test, test and test again after making changes. Test *immediately* after implementing 301 redirects. If you find      anything wrong, remove the redirect immediately. User a server header      checker to ensure that you're getting a correct 301 response when using the      old URL.&lt;/p&gt;&lt;br /&gt;    &lt;!--webbot bot="Include" U-Include="../_borders/ad_seo.htm" TAG="BODY" startspan --&gt;&lt;br /&gt;    &lt;!--webbot bot="Include" endspan i-checksum="19753" --&gt;&lt;br /&gt;&lt;h2 align="left"&gt;Search engine spiders &amp;amp; 301 redirects&lt;/h2&gt;&lt;br /&gt;    &lt;p align="left"&gt;The 301 redirect is the safest way to preserve your      rankings. On the next spidering, the search engine robot will obey the rule      indicated in your .htaccess file. The search engine spider doesn't actually      read the .htaccess file, but recognizes the response from the server as      valid.&amp;nbsp;&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt; In the next update, the old file name and path *should* be dropped and      replaced with the new one. Sometimes you may see alternating old/new file      names during the transition period, along with some possible fluctuations in      rankings as things settle. Don't panic - this is normal and may take a      number of weeks before everything is back to normal; but the bottom line is,      any change you make has risks - whether it's altering page text, moving/renaming      pages or changing domain names. Search engines run by their own rules and can      change those rules at any time.&amp;nbsp;&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt; If you're changing domain names and using a 301 redirect,      you'll need to leave the old domain name and files in place for a few weeks      to give the major search engines time to catch on to the changes and don't      forget to notify your link partners of the domain name change as soon as      possible. Once you deactivate the old domain, any search engine kudos you've      built up through those links will be gone.&lt;/p&gt;&lt;br /&gt;    &lt;h2 align="left"&gt;Related learning resources&lt;/h2&gt;&lt;br /&gt;    &lt;p align="left"&gt;&lt;a href="http://www.tamingthebeast.net/articles3/moving-servers.htm"&gt;Moving your web site to another server? Some tips.&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;&lt;a href="http://www.tamingthebeast.net/articles/filebase.htm"&gt;Web site file base maintenance&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;&lt;a href="http://www.tamingthebeast.net/articles2/optimization-tutorials.htm"&gt;Search engine marketing tutorials &amp;amp; resources&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;    &lt;p align="left"&gt;Michael Bloch&lt;br /&gt;&lt;br /&gt;      Taming the Beast&lt;br /&gt;&lt;br /&gt;  &lt;a href="http://www.tamingthebeast.net"&gt;http://www.tamingthebeast.net&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;      Tutorials, web content, tools and software.&lt;br /&gt;&lt;br /&gt;      Web Marketing, Internet Development &amp;amp; Ecommerce Resources&lt;br /&gt;&lt;br /&gt;      ____________________________&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;      Copyright information.... This article is free for reproduction but must be      reproduced in its entirety, including live links &amp;amp; this copyright statement must be included. &lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="mailto:snaroliya@gmail.com"&gt;Contact for Quality SEO work&lt;/a&gt;&lt;p/&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4444363902295273807-6111374920075457297?l=expertinseo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://expertinseo.blogspot.com/feeds/6111374920075457297/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4444363902295273807&amp;postID=6111374920075457297' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4444363902295273807/posts/default/6111374920075457297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4444363902295273807/posts/default/6111374920075457297'/><link rel='alternate' type='text/html' href='http://expertinseo.blogspot.com/2007/08/how-to-handle-old-urls-giving-search.html' title='How to handle old urls - Giving search engine spiders direction with a 301 redirect'/><author><name>blogmaster</name><uri>http://www.blogger.com/profile/15039947374065931235</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
