IIS 301 Redirect from “/index.html” to “/” for SEO Canonicalization

301-redirectiisseo

I used the technique explained here for IIS (http://www.webconfs.com/how-to-redirect-a-webpage.php), but this appears to result in an infinite loop when applied to "/index.htm" and redirected to "/". Is there another way to do this in IIS so that it doesn't loop infinitely?

This page is static HTML, so I can't implement an ASP or ASP.net solution. Any ideas?

Best Answer

If you are using IIS7, your application (even if it is just a static HTML site) can have a web.config. Have a look at the following post and see if this helps in setting up your rewrite rule (assuming you can use the IIS Rewrite module for your site): https://stackoverflow.com/questions/4206053/windows-server-web-config-strip-index-filename