force redirect non www url to www

I’m going straight to the point here.
I actually install a wordpress site on a windows server.
however, when I visit the site on my browser using "" it shows me error time out however when I visit the "" it work just fine.

Here’s my web.config file.
I am really new to this so please bear with me.
what I want is to force it to redirect to a www..

<?xml version="1.0" encoding="UTF-8"?>
      <rule name="WordPress:" patternSyntax="Wildcard">
        <match url="*"/>
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
        <action type="Rewrite" url="index.php"/>

Read more here: force redirect non www url to www

Leave a Reply

Your email address will not be published. Required fields are marked *