• Resolved mstudioIL

    (@mstudioil)


    I look at:
    https://redirection.me/support/redirect-regular-expressions/
    and not sure I understand it, what I need to under in the source and in the target
    I have site with lots of redirections to do and want to avoid doing them one by one.
    Can you tell me if this is right?
    this is for the source
    https:\/\/site-name\.com\/en\/laboratory-testing-equipment-for-development-and-electronics\/oscilloscopes\/(.*)\/
    and this is for the target
    https:\/\/site-name.com\/test-eqipment\/electronics\/spectrum-analyzers\/(.*)\/

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

    (@johnny5)

    You do not need to match the domain – just the path. You also do not need to escape // is fine instead of \/

    Thread Starter mstudioIL

    (@mstudioil)

    Thanks, so I need to change the old string to new string or each pages I want to change?
    en/laboratory-testing-equipment-for-development-and-electronics/spectrum-analyzers/(.*)/ for source
    and
    test-eqipment/electronics/spectrum-analyzers/(.*)/ for target
    will work?
    (I did mistake on the first post.)

    Plugin Author John Godley

    (@johnny5)

    You will need to include the first / as that is part of the path.

    No, the target does not contain regular expressions – it should be the result of expression – $1. See https://redirection.me/support/redirect-regular-expressions/ for more details and examples.

    Thread Starter mstudioIL

    (@mstudioil)

    Thanks, I will test it

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

The topic ‘Regex example’ is closed to new replies.