Copied to clipboard

Flag this post as spam?

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


  • Vilius Janulis 38 posts 79 karma points
    Jun 12, 2013 @ 15:09
    Vilius Janulis
    0

    Domain redirects in Umbraco

    Hi, so i have like three domains for the solutions :

    site.com,site.dk,site.eu

    I want all of them to redirect to site.com via web.config ir urlRewriting.config or .net at all.

    Have added all these hostnames to the umbraco backend pages.

     

    tried many things , but the most common that should work and does not is this one :

                      redirectMode="Permanent"
                   redirect="Domain"
                   ignoreCase="true" rewriteUrlParameter="IncludeQueryStringForRewrite"
        virtualUrl="http://www.site.eu/(.*)"
        destinationUrl="http://site.com/$1" />

     

    Tried all the ways, with http, without with www, without, by removing hostnames from backend, but doing rewrite in web.config .. nothig helped...

     

    Any ideas or help ? :)

    Thanks

     

  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Jun 12, 2013 @ 17:27
    Dave Woestenborghs
    0

    Can you change rewriteUrlParameter to : ExcludeFromClientQueryString ?

    That seems to work for me ?

Please Sign in or register to post replies

Write your reply to:

Draft