<?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>The Software Artist &#187; IIS7</title>
	<atom:link href="http://paulwideman.com/softwareartist/tag/iis7/feed/" rel="self" type="application/rss+xml" />
	<link>http://paulwideman.com/softwareartist</link>
	<description>Code is a form of art.</description>
	<lastBuildDate>Tue, 27 Sep 2011 01:22:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Removing www from your host URLs in IIS 7</title>
		<link>http://paulwideman.com/softwareartist/2010/05/16/removing-www-from-your-host-urls-in-iis-7/</link>
		<comments>http://paulwideman.com/softwareartist/2010/05/16/removing-www-from-your-host-urls-in-iis-7/#comments</comments>
		<pubDate>Sun, 16 May 2010 17:25:03 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[IIS7]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://paulwideman.com/softwareartist/?p=280</guid>
		<description><![CDATA[Here are some instructions to redirect all requests to http://www.hostname.com to just http://hostname.com. There are a few reasons why you would want to do this, here is a good post explaining some reasons why, and how to redirect from http://hostname.com to http://www.hostname.com. Doing the opposite is just as simple, add this to your web.config: &#60;system.webServer&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Here are some instructions to redirect all requests to http://www.hostname.com to just http://hostname.com. There are a few reasons why you would want to do this, <a href="http://blogs.iis.net/carlosag/archive/2008/09/02/iis-7-0-and-url-rewrite-make-your-web-site-seo.aspx">here is a good post</a> explaining some reasons why, and how to redirect from http://hostname.com to http://www.hostname.com. Doing the opposite is just as simple, add this to your web.config:</p>
<pre class="brush: xml; title: ; wrap-lines: false;">
  &lt;system.webServer&gt;
    &lt;rewrite&gt;
      &lt;rules&gt;
        &lt;rule name=&quot;Redirect to remove WWW&quot; stopProcessing=&quot;true&quot;&gt;
          &lt;match url=&quot;.*&quot; /&gt;
          &lt;conditions&gt;
            &lt;add input=&quot;{HTTP_HOST}&quot; pattern=&quot;^www.hostname.com$&quot; /&gt;
          &lt;/conditions&gt;
          &lt;action type=&quot;Redirect&quot; url=&quot;http://hostname.com/{R:0}&quot; redirectType=&quot;Permanent&quot; /&gt;
        &lt;/rule&gt;
      &lt;/rules&gt;
    &lt;/rewrite&gt;
  &lt;/system.webServer&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://paulwideman.com/softwareartist/2010/05/16/removing-www-from-your-host-urls-in-iis-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

