• I’d like to redirect links to my old posts from:

    /articles/yyyy/mm/dd/post-title

    to

    /blog/yyyy/mm/dd/post-title

    I’ve enabled the RegEx and entered the following Source URL which seems to work:

    ^/articles/.*

    But I’m not sure what to enter in the Target URL to get it to correctly forward. Any suggestions?

    https://wordpress.org/plugins/redirection/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try this:
    Source URL /articles/(.*)
    Target URL /blog/$1

    I want to redirect my 301 URLs on some other URls. Below is the cases:

    xyz.com/html/german = xyz.com/de xyz.com/german = xyz.com/de

    one more case :

    xyz.com/html/german/subpage.html = xyz.com/de/subpage

    Any one help on this?

    Try this two regular expressions:
    source url /(.*)german
    target url /de

    source url /(.*)german/(.*).html
    target url /de/$2

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘RegEx help’ is closed to new replies.