title: How do you implement 301 redirects in IIS 6 using web.config?
body: <p>I've recently redeveloped my website, and as a result some of the URLs have changed. I'm trying to add 301 redirects, so that PageRank from my old pages flow to my new pages.</p>
  
  <p>I've found out from my hosting company that the server my site is hosted on is using IIS 6. I only have access to my server through FTP, so (as far as I know) I can only implement the 301 redirects by uploading a web.config file to the same folder that contains my webpages.</p>
  
  <p>I've done some research and I've found a lot of similar questions but I haven't come across a solution for this on IIS 6.</p>
  
  <p>I created a blank web.config file and added the following code to it in order to see if it would work:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
   &lt;configuration&gt;
    &lt;location path="test.html"&gt;
     &lt;system.webServer&gt;
       &lt;httpRedirect enabled="true" destination="http://www.mysite.com/contact.html"    httpResponseStatus="Permanent" /&gt;
     &lt;/system.webServer&gt;
    &lt;/location&gt;
   &lt;/configuration&gt;
  </code></pre>
  
  <p>Unfortunately, this has no effect. Visiting test.html doesn't result in a redirect to contact.html. Test.html just loads as normal and nothing happens.</p>
  
  <p>I'm not sure if it's a coding issue, (as most of the forums seem to suggest the above code) or a configuration issue at the hosting company's end. They've informed me that it's a coding issue and that they don't have to install or configure anything at their end.</p>
  
  <p>I'm new to web.cong files, so I'm not sure if they're correct.</p>
  
  <p>Can anyone shed any light on what the problem is, or what I have to do to get this to work? Any help would be greatly appreciated.</p>
  
  <p>Regards,</p>
  
  <p>Ronny. </p>