Copied to clipboard

Flag this post as spam?

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


  • Giorgos Grispos 145 posts 179 karma points
    May 17, 2012 @ 14:35
    Giorgos Grispos
    0

    301 Url Redirect using urlrewriting.config

    Hi all,

    I've read a few posts here on how is the most proper way to have a 301 redirect from old URLs to the new ones. It's a multi site Umbraco installation and each language has its own site tree. Old URLs coming from the same domain while the new site will have five different domains.

    All I want is to redirect properly to the new URLs, let's see some examples.

    Old url: www.domain.com/en/index.html
    New redirect: www.newdomain.com/

    Old url: www.domain.com/nl/index.html
    New redirect: www.newdomain.nl/

    Old url: www.domain.com/nl/gallery.html
    New redirect: www.newdomain.nl/gallery/

    I got a recommendation from another post which give this piece of code.

    <add name="Eng-1"   
    redirect="Domain" ignoreCase="true" 
    rewriteUrlParameter="IncludeQueryStringForRewrite" redirectMode="Permanent" 
    virtualUrl="~/en/index.shtm" destinationUrl="/" />   

    Any ideas, directions would be great!

  • 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