[RESOLV]redirecionar o sem WWW para o com WWW por web.config
Enviado: 11 Out 2013, 17:07
olá pessoal tenho esse codigo no meu web.config porém nao estou conseguindo fazer redirecionar o site sem www para o com www
Código: Selecionar todos
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Main Rule" stopProcessing="true">
<match url="^([^?]*)" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?_route_={R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>