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
    Jun 19, 2012 @ 09:38
    Giorgos Grispos
    0

    301 redirect all pages for a multi language website

    Hi all,

    I am trying to set up my URLRewriting config so any URL from the old website which by the way has the following syntax

    www.domain.gr/en/index.shtml
    www.domain.gr/nl/index.shtml
    www.domain.gr/de/index.shtml

    redirect properly with 301 permanent mode to th proper current URL which wil lbe like te following

    www.domain.com/home/
    www.domain.nl/home/
    www.domain.de/home/

    I am trying the following, any ideas directions would be great guys,

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

    I need to change domains on the destination URL!

    Cheers, Giorgos

  • Giorgos Grispos 145 posts 179 karma points
    Jun 19, 2012 @ 10:15
    Giorgos Grispos
    0

    Hi

    I got this suggestion from another post, I'll try to see if it works. Any other suggetions or your opinion on that would be great.

      <add name="Eng-5"
      virtualUrl="(.*)://www.domain.gr/en/oldpage.shtm" rewriteUrlParameter="IncludeQueryStringForRewrite"
      destinationUrl="$1://www.domain.com/path/path-to-new-page/" ignoreCase="true" redirect="Domain" redirectMode="Permanent" />

    Cheers, Giorgos

     

Please Sign in or register to post replies

Write your reply to:

Draft