Specify Length of Parameters

Splash Forums Rewrite Users Specify Length of Parameters

This topic contains 2 replies, has 2 voices, and was last updated by  Christian Kaltepoth 2 years, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25326

    defuchs
    Participant

    Hi, i know this is very specific:

    We have “pretty urls” like this:

    domain.com/{12letterAsAnId}{adminKey}/admin

    can I somehow specify the length of those parameters? there is now sign in between the two parameters

    #25327

    defuchs
    Participant

    I managed to do it like this:

    config.addRule(Join.path(“/{pollId}{adminKey}/admin”).to(“/mynewpath.html”)).where(“pollId”).matches(“[BSPa-z0-9]{16}”)

    #25328

    Yeah, that’s exactly the way to go. 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Comments are closed.