• Hi!

    Trying to redirect, for example, the URL:
    /2019/11/22/a-ecologia-urbana-e-seus-estudos?share=facebook
    to:
    /a-ecologia-urbana-e-seus-estudos?share=facebook/

    I am using the following regex:
    Source: ^/\d{4}/\d{2}/\d{2}/(.*)
    Target: /$1/

    However, the result has been:
    a-ecologia-urbana-e-seus-estudos/?share=facebook/
    where a slash is added before the query string.

    I tried to solve this problem using different regexs, but I got nowhere.

    Could you help me? Thanks a lot.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Regex: Extra slash before query strings’ is closed to new replies.