OK. How do I do this?
Can you write here the code I need to put in siteusrls.config?
I found a post here -
http://www.dnnsoftware.com/forums/forumid/198/threadid/447937/scope/posts/threadpage/1
I don't understand the solution they found there.
Here is what Limno suggested as a code for solving it -
----------------------------------------------------------------------------------------------
You can use URLRewrite module installed with IIS 7 for your site:
Here is the code part in your webconfig you can write directly to the file
...
<rewrite>
<rules>
<rule name="301 redirect from non-www to www">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTP_HOST}" pattern="^www\.mydomain\.com$" negate="true" />
</conditions>
<action type="Redirect" url="http://www.mydomain.com/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
----------------------------------------------------------------------------------------------
I tried to put the code in my web.config file but I get error.
Is it a code for web.config?
Can you help?