Copied to clipboard

Flag this post as spam?

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


  • Barbacan 29 posts 79 karma points
    Sep 17, 2014 @ 09:51
    Barbacan
    0

    301 redirect strange behavior

    Hello, I migrated a site form a php system to Umbraco.
    I would like to redirect all the old urls (es: index.php? ...) to the current site root, so I wrote a rule:

    <urlrewritingnet xmlns="http://www.urlrewriting.net/schemas/config/2006/07">
        <rewrites>       
            <add name="301RedirectDirUrlsOldSite" virtualUrl="^http\://www.mysite.it/index.php(.*)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="http://www.mysite.it/" redirect="Domain" redirectMode="Permanent" ignoreCase="true" />
        </rewrites>
    </urlrewritingnet>   

    The rule works fine but the redirect incluse also the querystring parameters. For example is I fire www.mysite.it/index.php?p=10&url=test I've been redirect to the same url (without 404) but not to www.mysite.it only as I expect. Is there anything to change over my rule?

Please Sign in or register to post replies

Write your reply to:

Draft