Copied to clipboard

Flag this post as spam?

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


  • Anders 4 posts 74 karma points
    Nov 15, 2016 @ 08:43
    Anders
    0

    Dynamic redirect non existent page using UrlRewrite

    I am working on a new site and would like to make an dynamick Url rewrite rule from an old product page with url: http://www.domaine/product/[ID]

    Working redirect:

          <add name="old_prododuct-redirect"
        virtualUrl="(http://www.domaine.com/product/(.*))$"
        rewriteUrlParameter="ExcludeFromClientQueryString"
        destinationUrl="http://www.domaine.com/shop/category/[ID]/page.aspx"
        redirect="Domain"
        redirectMode="Permanent"
        ignoreCase="true" />
    

    My problem is to make [ID] dynamic. Thanks.

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Nov 15, 2016 @ 09:30
    Dave Woestenborghs
    0

    Hi Anders,

    Are you using UrlRewriting component or IIS to do your redirect ?

    Dave

  • Anders 4 posts 74 karma points
    Nov 22, 2016 @ 10:11
    Anders
    0

    Hi Dave Sorry for not answering

    I am using UrlRewrite. But also able on making rewrite rule in webconfig.

Please Sign in or register to post replies

Write your reply to:

Draft