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:

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

96,

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…

Regards,

DK