Copied to clipboard

Flag this post as spam?

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


  • Bas Schouten 135 posts 233 karma points
    Aug 31, 2010 @ 11:44
    Bas Schouten
    0

    Using UrlRewriting.config

    I am trying to use the UrlRewriting.config for a multilingual website. The domein without anything had to be changed to: domain.nl/nl/

    When I use following script it outputs domain.nlnlnlnlnlnlnlnlnlnlnl

    <add name="Rewrite"  
    virtualUrl="~/"   
    destinationUrl="/nl"
    redirect="Application"   
    redirectMode="Permanent"   
    ignoreCase="true" />

    Somebody know's what's going wrong?

  • Bijesh Tank 192 posts 420 karma points
    Aug 31, 2010 @ 12:10
    Bijesh Tank
    0

     

    Try something like this

    <add name="rewrite"
    virtualUrl="^http\://domain.nl"
    rewriteUrlParameter="ExcludeFromClientQueryString"
    destinationUrl="http://domain.nl/nl"
    redirect="Domain"
    redirectMode="Permanent"
    ignoreCase="true" />

     

  • Bas Schouten 135 posts 233 karma points
    Aug 31, 2010 @ 12:17
    Bas Schouten
    0

    Thanks for the reply. This returns: domain.nl/nl/nl/nl/nl/nl/nl/nl/nl/nl/nl/default.aspx.

  • Bijesh Tank 192 posts 420 karma points
    Aug 31, 2010 @ 12:22
    Bijesh Tank
    0

    Hi Bas,

    Do you have any other redirects in place either in code or in the config file?

  • Bas Schouten 135 posts 233 karma points
    Aug 31, 2010 @ 12:45
    Bas Schouten
    0

    Hi Bijesh,

    There are no other redirects. I think its a problem on the server. I will contact the server administrator.

Please Sign in or register to post replies

Write your reply to:

Draft