• Resolved fonderco

    (@fonderco)


    I’m trying to redirect using regex but replace characters

    FROM examples:
    /search/XX/City/Zip/ID/123-East-Main-Street/
    /search/XX/City/Zip/ID/123-Main-St/

    TO:
    /results/?keyword=123%20East%20Main%20Street
    /results/?keyword=123%20Main%20St

    Basically I am grabbing the 5th group via regex but I want to replace the dashes (-) with URL encoded spaces (%20).

    Can I do that?

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

    (@johnny5)

    I believe I answered this via email. Please only post an issue in one place.

    For reference:

    Currently the only way to do this is via a plain redirect:

    Source: /search/NV/Reno/89511/32127927/6284-Mormon-Tea-Way/
    Target: /results/?keyword=6284%20Mormon%20Tea%20Way

Viewing 1 replies (of 1 total)
  • The topic ‘replace dashes with spaces in $1 variable’ is closed to new replies.