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

    (@johnny5)

    It’s not an especially easy thing to do. First you need to match the URL. Maybe you can match any URL that contains an underscore? I’m not really sure what would fit your situation.

    You can then use the ‘dashes’ conversion:

    https://redirection.me/support/dynamic-urls/

    Thread Starter markbowendesign

    (@markbowendesign)

    Hi John,

    Thank you so much for answering! Also before I carry on can I just say a massive thank you for such a wonderful plugin. It’s very much appreciated.

    I had seen that page but was on my phone and when I saw the information about [userid] etc I didn’t carry on reading so missed the part at the bottom! Silly me! Will make sure to read everything next time!

    Thank you so much! I believe I have it all working now.

    My attempt at regex to find URLS with underscores in
    ^/news/detail/([a-z0-9_]+)

    My redirect rule
    /news/[dashes]$1[/dashes]

    Many thanks again.

    Best wishes,

    Mark

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect underscores to dashes…’ is closed to new replies.