• Resolved Daniel Zimmermann

    (@optimiertes)


    I would like to use following expression to redirect URLs containing Parameters, Hashtags or concluding with a Slash character.
    ^/old-page(/|((\#|\?|\/\?|\/\#).*))?$
    however, when saving the above expression it appears like this
    ^/old-page(/|((\

    Plugin Version 2.7.1

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Godley

    (@johnny5)

    It’s probably being sanitized away. I will look into this, but bear in mind that a hash makes no sense in a source URL as it is not sent to the server and therefore is not something you can use in a redirect. You can only use them in the target.

    Plugin Author John Godley

    (@johnny5)

    In 2.7.2 it won’t modify the URL if a # is present, but as mentioned above, it’s not possible to use these in the source URL anyway.

    Thread Starter Daniel Zimmermann

    (@optimiertes)

    Thank you for mentioning the # and the update!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘RegEx gets modified when saving’ is closed to new replies.