Uploaded image for project: '[Read Only] - Hippo Plugins'
  1. [Read Only] - Hippo Plugins
  2. HIPPLUG-952

URL Rewriter: Unexpected behavior

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • url-rewriter-1.05.01
    • None
    • None

    Description

      I tried setting up an advanced rewriting rule to redirect all URLs starting with abc/def to a fixed URL. Based on the forge documentation, I set the From field to

      ^/abc/def

      and the to field to the desired URL www.host.com/xyz.

      Using this on the request URL .../abc/def/hgi.html caused a redirection to www.host.com/xyz/hgi.html. Beware: the unmatched, trailing URL segment got appended to the To URL. That was unexpected, as the documentation (as I read it) suggests that this doesn't happen.

      Since this is the current behavior, I guess we can't change it, but I suggest that we explicitly document this in order to prevent confusion.
      I managed to get my desired behavior by using a From field of

      ^/abc/def.*$

      Attachments

        Activity

          People

            Unassigned Unassigned
            tjeger Tobias Jeger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: