Copied to clipboard

Flag this post as spam?

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


  • Jim Manson 8 posts 28 karma points
    Nov 29, 2011 @ 19:31
    Jim Manson
    0

    How do I rewrite a domain that does not include a page name?

    I have a URL www.firstdomain.com/realdeals?utm_source=Direct%2BMailing&utm_medium=letter&utm_campaign=Dec%2B2011%2BOne%2Bto%2BWon that I need to redirect to www.seconddomain.com/realdeals/ but I can not figure out how to do this with Umbraco.

    Any help is appreciated.

  • David Verberckmoes 46 posts 77 karma points
    Nov 30, 2011 @ 13:50
    David Verberckmoes
    0

    Hi,

    try to put this in the urlrewriting config file of your firstdomain umbraco installation:

     

    <add name="KickBrowserTo"  virtualUrl="^http://www.firstdomain.com/realdeals\?utm_source=Direct+Mailing&utm_medium=letter&utm_campaign=Dec+2011+One+to+Won"            
        rewriteUrlParameter="IncludeQueryStringForRewrite" 
        destinationUrl="http://www.seconddomain.com/realdeals/"
        redirect="Domain"
        redirectMode="Permanent"
        ignoreCase="true" />

     

  • Jim Manson 8 posts 28 karma points
    Oct 01, 2012 @ 05:50
    Jim Manson
    0

    Thanks!

  • 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