Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Amir Khan 1199 posts 2567 karma points
    Nov 04, 2013 @ 22:14
    Amir Khan
    0

    UrlRewrite not being caught

    Hi,


    I have an interesting situation with a URL rewrite where a URL Alias is being misinterpreted without a www but working with.

    If there is no www, instead of going to a page on the site of the intended domain, its going to a page in the site above it.

    Here's the structure

    domain1.com

    -urlalias

    domain2.com

    -urlalias

    So if I go to domain2.com/urlalias, it goes to the site at domain1.com!

    If I go to www.domain2.com/urlalias it goes to domain2.com.

    Here's a rewrite rule, any idea why it would be doing this?

    <add name="domainRewriteMC"
    virtualUrl="http://domain2.com/(.*)"
    rewriteUrlParameter="ExcludeFromClientQueryString"
    destinationUrl="http://www.domain2.com/$1"
    redirect="Domain"
    redirectMode="Permanent"
    ignoreCase="true" />
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies