Support » Plugin: Redirection » Change Spaces to Hyphens

  • Resolved shaunbowen


    Hi there, you have some useful transform shortcodes like [lower] and [dashes] to help with dynamic URLs.

    Would it be possible to add another one for [spaces] that converts the %20 space character to a hyphen? I have a load of URLs that have both uppercase characters and spaces, so doing them all manually will take ages!


    Source: https://mywebsite/North%20London/subpage/
    Target: https://mywebsite/north-london/subpage/

    I would like to use:

    Source: ^/(.*)/subpage/
    Target: /[lower][spaces]$1[/spaces][/lower]/subpage/

    • This topic was modified 1 month, 2 weeks ago by shaunbowen.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.