well, im having an issue with URL Rewrite module, and I wonder if anyone has been able to actually do it. The requirement is to ALWAYS redirect to https://domain.com and It seems to be easy but maybe the way nopCommerce works prevents it from working... :(
Example: user types url-> domain.com or www.domain.com or https://www.domain.com
and he gets a 301 redirect to https://domain.com
as you probably know, google takes these URL's as different.
So far i've tried this combinations with no luck:
<rule name="Remove www" stopProcessing="true">
<match url="(.*)" ignoreCase="true" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^www\.(.+)$" />
<add input="{HTTPS}" pattern="^www\.(.+)$" />
</conditions>
<action type="Redirect" url="https://{C:1}/{R:0}" appendQueryString="true" redirectType="Permanent" />
</rule>
<rule name="Redirect everything to https:// on www domain" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTP_HOST}" pattern="www.domain.com" negate="true" />
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" url="https://domain.com/{R:0}" redirectType="Permanent" />
</rule>
anyone with the perfect rule?