Support » Plugin: Redirection » Redirecting post titles

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

    (@johnny5)

    You can create a redirect like this:

    Source: /post-title/?lcp_page0=nruyvccvj&lcp_page0=7
    Target /post-title/

    Thread Starter ETO

    (@esmus)

    Thank you so much! However, /post-title/?lcp_page0=nruyvccvj&lcp_page0=7 this is not the only link. There are like this:

    /post-title/?lcp_page0=nruyvccvj&lcp_page0=1
    /post-title/?lcp_page0=nruyvccvj&lcp_page0=2
    /post-title/?lcp_page0=nrfbsdbbcvj&lcp_page0=7

    In short, they all begin with “?lcp_”
    So will it work if I change your suggestion like this?

    Source: /post-title/?lcp_*
    Target /post-title/

    Plugin Author John Godley

    (@johnny5)

    No, wildcards are not supported Instead you can use a regular expression:

    https://redirection.me/support/redirect-regular-expressions/

    Note that ? is a special character and will needed escaping as \?

    Thread Starter ETO

    (@esmus)

    Could you please give me another redirection for the case I explained? I couldn’t understand how to do it. 🙁

    Plugin Author John Godley

    (@johnny5)

    The guide contains several examples at the bottom of the page, and there is a lot of information about regular expressions on the internet – it is not specific to Redirection. You can also use https://regex101.com to test your expression.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.