Copied to clipboard

Flag this post as spam?

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


  • Tom Herrijgers 5 posts 25 karma points
    Jun 21, 2012 @ 20:28
    Tom Herrijgers
    0

    Regular expresion problem

    Hi,

    I have a site with the folow regular expresion in my UrlRewriting.config:

     

        <add name="nlman"

          virtualUrl="^~/nl/vacatures/management"

          destinationUrl="~/nl/vacatures/?cat=nlman"

          rewriteUrlParameter="ExcludeFromClientQueryString" ignoreCase="true" />

     

    This works perfect. But the other links:

    nl/vacatures/management/regionaal-sales-manager may not redirect to that. Do anyone have a idee how i can fix this?

    Thanks Tom

     

  • Mike Chambers 636 posts 1253 karma points c-trib
    Jun 21, 2012 @ 21:16
    Mike Chambers
    0

    If you are wanting any url starting ~/nl/vacatures/management to redirect to ~/nl/vacatures/?cat=nlman

    then   virtualUrl="^~/nl/vacatures/management.*" should suffice?

  • Tom Herrijgers 5 posts 25 karma points
    Jun 21, 2012 @ 21:19
    Tom Herrijgers
    0

    No i want only the url exactly "^~/nl/vacatures/management" to redirect all the other when there is something after management/...." it may not redirect.

    Now he redirect all the urls when ther is "/nl/vacatures/management" in it

  • Mike Chambers 636 posts 1253 karma points c-trib
    Jun 21, 2012 @ 21:20
    Mike Chambers
    0

    virtualUrl="^~/nl/vacatures/management$" ?

  • Tom Herrijgers 5 posts 25 karma points
    Jun 21, 2012 @ 21:36
    Tom Herrijgers
    0

    Yes now he work. Thanks

Please Sign in or register to post replies

Write your reply to:

Draft