<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/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>Paulo Morgado : CommunityServer</title><link>http://weblogs.asp.net/paulomorgado/archive/tags/CommunityServer/default.aspx</link><description>Tags: CommunityServer</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Microsoft URL Rewrite Module 1.1 For IIS 7 To The Rescue</title><link>http://weblogs.asp.net/paulomorgado/archive/2009/06/01/microsoft-url-rewrite-module-1-1-for-iis-7-to-the-rescue.aspx</link><pubDate>Mon, 01 Jun 2009 00:10:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7104572</guid><dc:creator>Paulo Morgado</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/paulomorgado/rsscomments.aspx?PostID=7104572</wfw:commentRss><comments>http://weblogs.asp.net/paulomorgado/archive/2009/06/01/microsoft-url-rewrite-module-1-1-for-iis-7-to-the-rescue.aspx#comments</comments><description>&lt;p&gt;We are migrating the &lt;a title="[:: PontoNetPT - .NET em Português(PT) ::]" href="http://www.pontonetpt.com/" target="_blank"&gt;PontoNetPT&lt;/a&gt; community from an old .TEXT version to the latest &lt;a title="Community Software by Telligent" href="http://communityserver.com/" target="_blank"&gt;Community Server&lt;/a&gt; (CS).&lt;/p&gt;  &lt;p&gt;Because &lt;strong&gt;PontoNetPT&lt;/strong&gt; has nearly 200 blogs with I don’t know how any posts, commentaries, trackbacks, etc., we are using the &lt;a title="Community Server API - Extending the platform just got easier..." href="http://api.communityserver.com/" target="_blank"&gt;Community Server REST API&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;The problem with using this API is that it doesn’t create the folder that CS can be configured to create with a default.aspx file for each blog created using it’s web site administration.&lt;/p&gt;  &lt;p&gt;The importance of this folder and file is for &lt;a title="IIS.net : The Official Microsoft IIS Site" href="http://www.iis.net/" target="_blank"&gt;IIS&lt;/a&gt; to be able to handle the requests &lt;strong&gt;http://&amp;lt;your community&amp;gt;/blogs/&amp;lt;your blog&amp;gt;&lt;/strong&gt; or &lt;strong&gt;http://&amp;lt;your community&amp;gt;/blogs/&amp;lt;your blog&amp;gt;/&lt;/strong&gt; as if was a request to &lt;strong&gt;http://&amp;lt;your community&amp;gt;/blogs/&amp;lt;your blog&amp;gt;/default.aspx&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;Fortunately, we are running on &lt;a title="Microsoft Windows Server 2008" href="http://cli.gs/Microsoft-Windows-Server-2008" target="_blank"&gt;Windows 2008&lt;/a&gt; and IIS 7 and all it took was to install the &lt;a title="Microsoft URL Rewrite Module 1.1 For IIS 7" href="http://cli.gs/Microsoft-IIS7-URL-Rewrite-Module" target="_blank"&gt;Microsoft URL Rewrite Module 1.1 For IIS 7&lt;/a&gt; and configure it:&lt;/p&gt;  &lt;pre class="code"&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;configuration&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
  &amp;lt;!--&lt;/span&gt;&lt;span style="color: green"&gt;...&lt;/span&gt;&lt;span style="color: blue"&gt;--&amp;gt;
  &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;system.webServer&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
    &amp;lt;!--&lt;/span&gt;&lt;span style="color: green"&gt;...&lt;/span&gt;&lt;span style="color: blue"&gt;--&amp;gt;
    &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;rewrite&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
      &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;rules&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
        &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;rule &lt;/span&gt;&lt;span style="color: red"&gt;name&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;Add Default.aspx to blog root URLs&lt;/span&gt;&amp;quot; &lt;span style="color: red"&gt;stopProcessing&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;false&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;&amp;gt;
          &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;match &lt;/span&gt;&lt;span style="color: red"&gt;url&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;^blogs/([^/]*)(/?)$&lt;/span&gt;&amp;quot; &lt;span style="color: blue"&gt;/&amp;gt;
          &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;action &lt;/span&gt;&lt;span style="color: red"&gt;type&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;Rewrite&lt;/span&gt;&amp;quot; &lt;span style="color: red"&gt;url&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="color: blue"&gt;blogs/{R:1}/Default.aspx&lt;/span&gt;&amp;quot; &lt;span style="color: blue"&gt;/&amp;gt;
        &amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;rule&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
      &amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;rules&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
    &amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;rewrite&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
    &amp;lt;!--&lt;/span&gt;&lt;span style="color: green"&gt;...&lt;/span&gt;&lt;span style="color: blue"&gt;--&amp;gt;
  &amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;system.webServer&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
  &amp;lt;!--&lt;/span&gt;&lt;span style="color: green"&gt;...&lt;/span&gt;&lt;span style="color: blue"&gt;--&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;configuration&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7104572" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/paulomorgado/archive/tags/IIS7/default.aspx">IIS7</category><category domain="http://weblogs.asp.net/paulomorgado/archive/tags/CommunityServer/default.aspx">CommunityServer</category></item></channel></rss>