I am attempting to redirect the IP address of my domain to the domain name and am running into trouble. The IP address does not redirect to the domain name listed in the redirect statement below.
The IP Address is http://184.168.27.44/
I've setup the following rule in my web.config file:
<rule name="IPHit" enabled="true" stopProcessing="false">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^184\.168\.27\.44" />
</conditions>
<action type="Redirect" url="http://littlejawsbigsmiles.com/{R:1}" redirectType="Permanent" />
</rule>
The DNS is setup with the following records:
A (HOST)
------------------------
@ --> 184.168.27.44
CNAME (Alias)
------------------------
www --> @
Is there anything else that I'm mising? I'm not sure why this isnt working.