<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Tips &amp; Tricks for ASP.NET, IIS, and Visual Web Developer : SEO</title><link>http://blogs.msdn.com/webdevelopertips/archive/tags/SEO/default.aspx</link><description>Tags: SEO</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Tip #73: Did you know... about IIS Search Engine Optimization (SEO) Toolkit Beta</title><link>http://blogs.msdn.com/webdevelopertips/archive/2009/06/03/tip-73-did-you-know-about-iis-search-engine-optimization-seo-toolkit-beta.aspx</link><pubDate>Thu, 04 Jun 2009 00:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9693277</guid><dc:creator>WebDevTools</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/webdevelopertips/comments/9693277.aspx</comments><wfw:commentRss>http://blogs.msdn.com/webdevelopertips/commentrss.aspx?PostID=9693277</wfw:commentRss><description>&lt;P&gt;IIS Search Engine Optimization (SEO) Toolkit Beta – is a free toolkit that helps Web developers, hosting providers, and server administrators improve their sites’ relevance in search results by recommending how to make them more search engine-friendly. The SEO Toolkit Beta is available for installation via the &lt;A href="http://www.microsoft.com/web/downloads/platform.aspx" mce_href="http://www.microsoft.com/web/downloads/platform.aspx"&gt;Microsoft Web Platform Installer 2.0 Beta&lt;/A&gt;. 
&lt;P&gt;The IIS SEO Toolkit can: 
&lt;P&gt;· Improve the volume and quality of traffic to Web site from search engines 
&lt;P&gt;· Control how search engines access and display Web content 
&lt;P&gt;· Inform search engines about locations that are available for indexing 
&lt;P&gt;The IIS SEO Toolkit includes three modules that integrate with IIS Manager: 
&lt;P&gt;· &lt;B&gt;Site Analysis&lt;/B&gt;, which suggests changes that can help improve the volume and quality of traffic to your Web site from search engines; 
&lt;P&gt;· &lt;B&gt;Robots Exclusion&lt;/B&gt;, which makes it easier to control and restrict the content that search engines index and display; and 
&lt;P&gt;· &lt;B&gt;Sitemaps and Site Indexes&lt;/B&gt;, which can help inform search engines about locations that are available for indexing. 
&lt;P&gt;The IIS SEO Toolkit Beta can be installed with the &lt;A href="http://www.microsoft.com/web/downloads/platform.aspx" mce_href="http://www.microsoft.com/web/downloads/platform.aspx"&gt;Microsoft Web Platform Installer 2.0 Beta&lt;/A&gt;.&amp;nbsp; 
&lt;P&gt;· For more information, visit: &lt;A href="http://www.iis.net/extensions/SEOToolkit" mce_href="http://www.iis.net/extensions/SEOToolkit"&gt;http://www.iis.net/extensions/SEOToolkit&lt;/A&gt; 
&lt;P&gt;· For more information on the Microsoft Web Platform, visit &lt;A href="http://www.microsoft.com/web" mce_href="http://www.microsoft.com/web"&gt;www.microsoft.com/web&lt;/A&gt; 
&lt;P&gt;To follow Microsoft Web Platform on Twitter: &lt;A href="http://www.twitter.com/mswebplatform" mce_href="http://www.twitter.com/mswebplatform"&gt;www.twitter.com/mswebplatform&lt;/A&gt; 
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Deepak Verma &lt;/STRONG&gt;&lt;BR&gt;SDET | &lt;A href="http://blogs.msdn.com/webdevtools/" mce_href="http://blogs.msdn.com/webdevtools/"&gt;Visual Web Developer&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9693277" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/webdevelopertips/archive/tags/tips+and+tricks/default.aspx">tips and tricks</category><category domain="http://blogs.msdn.com/webdevelopertips/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.msdn.com/webdevelopertips/archive/tags/Deepak+Verma/default.aspx">Deepak Verma</category><category domain="http://blogs.msdn.com/webdevelopertips/archive/tags/SEO/default.aspx">SEO</category><category domain="http://blogs.msdn.com/webdevelopertips/archive/tags/Web+PI/default.aspx">Web PI</category></item><item><title>Tip#25: Did you know... You can have canonical URLs and Redirects with IIS 7.0</title><link>http://blogs.msdn.com/webdevelopertips/archive/2008/11/20/tip-25-did-you-know-you-can-have-canonical-urls-and-redirects-with-iis-7-0.aspx</link><pubDate>Thu, 20 Nov 2008 04:57:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9126976</guid><dc:creator>WebDevTools</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/webdevelopertips/comments/9126976.aspx</comments><wfw:commentRss>http://blogs.msdn.com/webdevelopertips/commentrss.aspx?PostID=9126976</wfw:commentRss><description>&lt;p&gt;Canonical URLs help you to make your links Search Engine Optimized (SEO). For human it is easy to understand that &lt;a href="http://www.contoso.com"&gt;http://www.contoso.com&lt;/a&gt; is same as &lt;a href="http://contoso.com"&gt;http://contoso.com&lt;/a&gt;. But many search engines will not make this assumption and treat them as two separate entries. This will split the rankings among them and lower the overall relevance of the site.&lt;/p&gt;  &lt;p&gt;In IIS7.0 you can use URL Rewrite to solve this problem. The following rule when added in the &amp;quot;Web.config&amp;quot; file in the root of your web site will automatically direct all the people using &lt;a href="http://contoso.com"&gt;http://contoso.com&lt;/a&gt; to &lt;a href="http://www.contoso.com"&gt;http://www.contoso.com&lt;/a&gt;. &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;pre&gt;&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #ff0000"&gt;configuration&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;
  &amp;lt;&lt;/span&gt;&lt;span style="color: #ff0000"&gt;system.webServer&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;
    &amp;lt;&lt;/span&gt;&lt;span style="color: #ff0000"&gt;rewrite&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;
      &amp;lt;&lt;/span&gt;&lt;span style="color: #ff0000"&gt;rules&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;
        &amp;lt;&lt;/span&gt;&lt;span style="color: #ff0000"&gt;rule&lt;/span&gt;&lt;span style="color: #0000ff"&gt; &lt;/span&gt;&lt;span style="color: #000000"&gt;name&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;quot;WWW Redirect&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #0000ff"&gt; &lt;/span&gt;&lt;span style="color: #000000"&gt;stopProcessing&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #0000ff"&gt;true&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;
          &amp;lt;&lt;/span&gt;&lt;span style="color: #ff0000"&gt;match&lt;/span&gt;&lt;span style="color: #0000ff"&gt; &lt;/span&gt;&lt;span style="color: #000000"&gt;url&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #0000ff"&gt;.*&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #0000ff"&gt; /&amp;gt;
          &amp;lt;&lt;/span&gt;&lt;span style="color: #ff0000"&gt;conditions&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;
            &amp;lt;&lt;/span&gt;&lt;span style="color: #ff0000"&gt;add&lt;/span&gt;&lt;span style="color: #0000ff"&gt; &lt;/span&gt;&lt;span style="color: #000000"&gt;input&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #0000ff"&gt;{HTTP_HOST}&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #0000ff"&gt; &lt;/span&gt;&lt;span style="color: #000000"&gt;pattern&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;quot;^&lt;/span&gt;&lt;span style="color: #0000ff"&gt;contoso.com$&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #0000ff"&gt; /&amp;gt;
          &amp;lt;/&lt;/span&gt;&lt;span style="color: #ff0000"&gt;conditions&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;
          &amp;lt;&lt;/span&gt;&lt;span style="color: #ff0000"&gt;action&lt;/span&gt;&lt;span style="color: #0000ff"&gt; &lt;/span&gt;&lt;span style="color: #000000"&gt;type&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #0000ff"&gt;Redirect&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #0000ff"&gt; &lt;/span&gt;&lt;span style="color: #000000"&gt;url&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&lt;a href="http://www.contoso.com/{R:0"&gt;http://www.contoso.com/{R:0&lt;/a&gt;}&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #0000ff"&gt; &lt;/span&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;span style="color: #0000ff"&gt;&lt;/span&gt;&lt;span style="color: #000000"&gt;redirectType&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #0000ff"&gt;Permanent&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #0000ff"&gt; /&amp;gt;
        &amp;lt;/&lt;/span&gt;&lt;span style="color: #ff0000"&gt;rule&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;
      &amp;lt;/&lt;/span&gt;&lt;span style="color: #ff0000"&gt;rules&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;
    &amp;lt;/&lt;/span&gt;&lt;span style="color: #ff0000"&gt;rewrite&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;
  &amp;lt;/&lt;/span&gt;&lt;span style="color: #ff0000"&gt;system.webServer&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="color: #ff0000"&gt;configuration&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;
&amp;lt;/PRE&amp;lt; P&amp;gt;&lt;p&gt;&amp;#160;&lt;/p&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;One important thing to remember is to use &amp;quot;Permanent&amp;quot; redirects. This will be helpful if anybody who has linked your page using a non WWW URL. Doing this will direct search engine bot crawls to treat the link as permanently moved. The new URL will be identified as the correct address hence old non WWW URL will not be indexed.&lt;/p&gt;

&lt;p&gt;I have just pasted the XML code but the same thing can be achieved using the URL Rewrite GUI which comes with IIS Manager. &lt;/p&gt;

&lt;p&gt;Open IIS Manager.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.YoucanhavecanonicalURLsandRedirectsw_A5D6/IIS_Manager_4.jpg"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="198" alt="IIS_Manager" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.YoucanhavecanonicalURLsandRedirectsw_A5D6/IIS_Manager_thumb_1.jpg" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Click on URL Rewrite.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.YoucanhavecanonicalURLsandRedirectsw_A5D6/Url_Rewrite_4.jpg"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="198" alt="Url_Rewrite" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.YoucanhavecanonicalURLsandRedirectsw_A5D6/Url_Rewrite_thumb_1.jpg" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Click on Add Rules-&amp;gt;Blank Rule.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.YoucanhavecanonicalURLsandRedirectsw_A5D6/image_4.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="167" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip.YoucanhavecanonicalURLsandRedirectsw_A5D6/image_thumb_1.png" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Give a pattern you would like to match, change the &amp;#8220;Action type&amp;#8221; to &amp;#8220;Redirect&amp;#8221; and specify the redirect URL. This will add the same content to the config file as shown above. &lt;/p&gt;

&lt;p&gt;One important thing to remember is that URL Rewrite should be installed for this to work. You can install X86 version &lt;a href="http://www.iis.net/downloads/default.aspx?tabid=34&amp;amp;g=6&amp;amp;i=1691" target="_blank"&gt;here&lt;/a&gt; and X64 &lt;a href="http://www.iis.net/downloads/default.aspx?tabid=34&amp;amp;g=6&amp;amp;i=1692" target="_blank"&gt;here&lt;/a&gt;. This module is supported for IIS 7.0 and you should be running IIS 7.0 to take advantage of it. Also if you are working with VWD (Visual Studio for Web Developers) your project should be configured to work with IIS 7.0 and not any other web server.&lt;/p&gt;

&lt;p&gt;For details about URL Rewrite module please look &lt;a href="http://learn.iis.net/page.aspx/460/using-url-rewrite-module/" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Don Raman&amp;#160; &lt;br /&gt;&lt;/strong&gt;SDET, &lt;a href="http://www.iis.net/" target="_blank"&gt;IIS Team&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9126976" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/webdevelopertips/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.msdn.com/webdevelopertips/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.msdn.com/webdevelopertips/archive/tags/Canonical+URL/default.aspx">Canonical URL</category><category domain="http://blogs.msdn.com/webdevelopertips/archive/tags/URL+Redirect/default.aspx">URL Redirect</category><category domain="http://blogs.msdn.com/webdevelopertips/archive/tags/SEO/default.aspx">SEO</category><category domain="http://blogs.msdn.com/webdevelopertips/archive/tags/URL+Rewrite/default.aspx">URL Rewrite</category></item></channel></rss>