Non www to www redirection does not work successfully on subforlder

Hi, I am able to redirect non www to www in web.config for IIS7 but my blog is redirecting on root/domain. Please help!

Please find the code as below:

<rule name=“Redirect to WWW” stopProcessing=“true”>
<match url=“." />
<add input=“{HTTP_HOST}” pattern=“^seotraininginstitute\.in$” />
<add input=“{PATH_INFO}” pattern=“^/blog/” negate=“true”/>
<action type=“Redirect” url=“” redirectType=“Permanent” />
<rule name=“redirect index.html” stopProcessing=“true”>
<match url="^(\w
/)?index\.html” />
<add input=“{HTTP_HOST}” pattern=“seotraininginstitute\.in$” />
<action type=“Redirect” url=“{R:1}” />


Argh! Your best bet would be to wait for Wyatt (wwb_99) as he’s the M$ expert.

That said, I would question your syntax in the second rule as I suspect that you may need your {word character}* embedded in a character range definition (square brackets). Yes, that’s Apache but I don’t know how this version of IIS requires character range definitions to be entered.

Sorry I don’t speak IIS for you but this may help you find what you’re looking for…