Redirect Non www to www - Web.config

Redirect Non www to www - Web.config

code snippet

web.config
<system.webServer>
        <rewrite>
            <rules>
                <remove name="Redirect non www to www" />
                <rule name="Redirect non www to www" stopProcessing="true">
                   <match url=".*" />
                   <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                      <add input="{HTTP_HOST}" pattern="^yourdomain.com$" />
                   </conditions>
                   <action type="Redirect" url="https://www.yourdomain.com.au/{R:0}" />
                </rule>
            </rules>
        </rewrite>
</system.webServer>

"The measure of who we are is what we do with what we have"

Contact me!

Have questions? Feel free to use the form or send me an email with any questions.

I will be responsive to your requests and your questions.