Copied to clipboard

Flag this post as spam?

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


  • Jonas Nilsson 137 posts 260 karma points
    Sep 13, 2012 @ 12:44
    Jonas Nilsson
    0

    URLRewrite or Custom 404?

    I have added multi language support to an existing Umbraco 4.7 site.

    root
    -sv
    --subpages...
    -en
    -da

    All indexed page links on Google points to the old url without the language code and they will be broken 
    when activating the new structure.

    Whats the easiest way to handle this?, does anyone have an working URLRewrite rule?

    /Jonas

     

     

     

     

  • David Peck 690 posts 1896 karma points c-trib
    Sep 14, 2012 @ 11:51
    David Peck
    0

    I would have thought you'd want a 301 redirect to your default language site rather than a URL rewrite, so Google learns your new urls. If you route your old folder structure to a single bit of server side code then it should be pretty simple to manipulate the URL and respond with a 301.

    The challenge will be routing only old site urls through to something to create the 301. Maybe you could leave the old site there but change the templates to all run the same function on Page_Init. Alternatively you could route old url paths to an HttpHandler, create Virtual Directories in IIS or something with Umbraco Base. The choice, is yours!

    Best of luck!!!

  • Jonas Nilsson 137 posts 260 karma points
    Sep 14, 2012 @ 15:57
    Jonas Nilsson
    0

    Found the 301 URL Tracker package, it solved my problem! :-)

    http://our.umbraco.org/projects/developer-tools/301-url-tracker

Please Sign in or register to post replies

Write your reply to:

Draft