<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>IIrrelevant - IIS7</title>
    <link>http://www.milkcarton.com/blog/</link>
    <description>Irrelevant musings about software development</description>
    <language>en-us</language>
    <copyright>Dan Morphis</copyright>
    <lastBuildDate>Mon, 28 Jun 2010 00:02:31 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>blog@milkcarton.com</managingEditor>
    <webMaster>blog@milkcarton.com</webMaster>
    <item>
      <trackback:ping>http://www.milkcarton.com/blog/Trackback.aspx?guid=1e8f169b-eb16-4ab1-921f-027743bc9148</trackback:ping>
      <pingback:server>http://www.milkcarton.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.milkcarton.com/blog/PermaLink,guid,1e8f169b-eb16-4ab1-921f-027743bc9148.aspx</pingback:target>
      <dc:creator>Dan Morphis</dc:creator>
      <wfw:comment>http://www.milkcarton.com/blog/CommentView,guid,1e8f169b-eb16-4ab1-921f-027743bc9148.aspx</wfw:comment>
      <wfw:commentRss>http://www.milkcarton.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=1e8f169b-eb16-4ab1-921f-027743bc9148</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
After not blogging for over a year, I decided to get back in the swing of things and
write more. I clicked on a link and got the dreaded 404. So I decided to investigate.
</p>
        <p>
About 6-8 months ago I upgraded my server last year to Server 2008 and IIS 7. I checked
that my blog loaded, but never checked any links. It turns out that IIS 7 be default
blogs "+" in URLs because it can pose security issues. Well, all my blog post links
have "+" in them. This broke things :(
</p>
        <p>
After some digging, I figured out how to fix it. Add the following to your Web.config
file<br />
&lt;configuration&gt;<br />
  &lt;system.webServer&gt;<br />
    &lt;security&gt;<br />
      &lt;requestFiltering allowDoubleEscaping="True"/&gt;<br />
    &lt;/security&gt;<br />
  &lt;/system.webServer&gt;<br />
&lt;/configuration&gt;<br /></p>
        <img width="0" height="0" src="http://www.milkcarton.com/blog/aggbug.ashx?id=1e8f169b-eb16-4ab1-921f-027743bc9148" />
      </body>
      <title>My blog links were broken, and the improved security of IIS 7 was to blame</title>
      <guid isPermaLink="false">http://www.milkcarton.com/blog/PermaLink,guid,1e8f169b-eb16-4ab1-921f-027743bc9148.aspx</guid>
      <link>http://www.milkcarton.com/blog/2010/06/28/My+Blog+Links+Were+Broken+And+The+Improved+Security+Of+IIS+7+Was+To+Blame.aspx</link>
      <pubDate>Mon, 28 Jun 2010 00:02:31 GMT</pubDate>
      <description>&lt;p&gt;
After not blogging for over a year, I decided to get back in the swing of things and
write more. I clicked on a link and got the dreaded 404. So I decided to investigate.
&lt;/p&gt;
&lt;p&gt;
About 6-8 months ago I upgraded my server last year to Server 2008 and IIS 7. I checked
that my blog loaded, but never checked any links. It turns out that IIS 7 be default
blogs "+" in URLs because it can pose security issues. Well, all my blog post links
have "+" in them. This broke things :(
&lt;/p&gt;
&lt;p&gt;
After some digging, I figured out how to fix it. Add the following to your Web.config
file&lt;br /&gt;
&amp;lt;configuration&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;lt;system.webServer&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;security&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;requestFiltering allowDoubleEscaping="True"/&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/security&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;lt;/system.webServer&amp;gt;&lt;br /&gt;
&amp;lt;/configuration&amp;gt;&lt;br /&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.milkcarton.com/blog/aggbug.ashx?id=1e8f169b-eb16-4ab1-921f-027743bc9148" /&gt;</description>
      <comments>http://www.milkcarton.com/blog/CommentView,guid,1e8f169b-eb16-4ab1-921f-027743bc9148.aspx</comments>
      <category>IIS7</category>
      <category>Windows</category>
    </item>
  </channel>
</rss>