Support » Plugin: Redirection » How do I replace a section of the URL?

  • Resolved philipt18

    (@philipt18)



    Let’s say I have a domain sample.com, and on that site I have a page called demo, which shows up in wordpress as sample.com/demo. Now, let’s say there are thousands of child and other descendent pages of demo, such that there are many pages like

    sample.com/demo/one
    sample.com/demo/one/a
    sample.com/demo/one/b/c
    sample.com/demo/two/d
    etc…

    Now let’s say I want to change the name of the demo page to final, so the above would be:

    sample.com/final/one
    sample.com/final/one/a
    sample.com/final/one/b/c
    sample.com/final/two/d

    I would simply change the name of the demo page to final, and everyone would change, but I need the old links to redirect to the new ones. How do I do that? I’m guessing using Regex? What would the formula be?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I replace a section of the URL?’ is closed to new replies.