Copied to clipboard

Flag this post as spam?

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


  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Jan 24, 2015 @ 15:24
    Michaël Vanbrabandt
    0

    Redirect domain to domain/nl

    I have created a multilingual website in umbraco 7.

    To prevent duplicated content for SEO I want http://www.example.be to be redirected , 301 permantly, to http://www.example.be/nl also http://example.be must be redirected to http://www.example.be/nl.

    How can I accomplish this?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 24, 2015 @ 15:38
    Jan Skovgaard
    0

    Hi Michaël

    One way of achieving it could be to setup an IIS site to handle the 301 redirect if you have the urlredirect/urlrewrite module activated in IIS.

    The approach is

    1: Create a IIS website called "Redirect example.be"

    2: Point it to an empty folder

    3: In the bindings setup www.example.be and example.be (You will probably need to add the last binding once the site is created as it seems that it's only possible to add one binding during setup)

    4: Click on the IIS site - You should now see some different options for the site - If the rewrite/redirect module is activated then you can click it and add a redirect rule where you can make a 301 redirect to the desired domain.

    Can't remember if the 301 tracker package can handle this scenario as well. But it's good for page redirects and is perhaps a package you can benefit from in other circumstances as well.

    Hope this helps.

    /Jan

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Jan 24, 2015 @ 16:19
    Michaël Vanbrabandt
    0

    Can I use the regular iirf.ini file? Because in other non umbraco sites I use this which is provided by my hosting company.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 25, 2015 @ 15:01
    Jan Skovgaard
    0

    Hi Michaël

    Hmm, I don't know that. Have never heard of such file. But perhaps...I guess? :)

    /Jan

  • Mike Chambers 636 posts 1253 karma points c-trib
    Jan 26, 2015 @ 00:39
    Mike Chambers
    0

    Use the inbuilt urlrewriting.net? 

    Config file is in the config folder with sample rewriting and a quick Google will give you the full documentation for urlrewriting.net to do your perm redirections.

Please Sign in or register to post replies

Write your reply to:

Draft