I currently have a site that I want to be able to have the URL rewrite work for www for the actual URL, but not for the EverLeap secondary URL (xxx.el-alt.com) The rule is currently set as follows, <rule name="CanonicalHostNameRule1"> <match url="(.*)" /> <conditions> <add input="{HTTP_HOST}" pattern="^www\.sitename\.com$" negate="true" /> </conditions> <action type="Redirect" url="http://www.sitename.com/{R:1}" /> </rule> and I think the change I need may be needed to the "match url" value, but nothing I've tried has worked. Any ideas of what I need to do to achieve this?
If you need actual markup, it should look something like this: Code: <rule name="RedirectActualURL"> <match url="^http://sitename\.com$" /> <action type="Redirect" url="http://www.sitename.com" appendQueryString="false" /> </rule>
Much thanks Ray! I added the above to my web.config and now both the regular URL and the el-alt.com URL work