• Resolved blazeonline

    (@linksync)


    Thank you for your plugin. We use it a great deal.

    Hoping you can help with the following.

    We want to match URLs that contain a certain path and redirect them.

    eg. abc.com/favourite/beer-cider/ redirects to xyz.com/favourite/beer-cider/

    Regex match: ^./(shop|shop-by|favourite|occasion|gift-baskets-on-sale|product-type)/.$ which seems to work ok.

    Redirecting to https://xyz.com/$1

    The problem though is the the full url path is being lost.

    expecting https://xyz.com/favourite/beer-cider/ but getting https://xyz.com/favourite/

    Thank you.

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

    (@johnny5)

    Your expression needs to match the whole URL. You are only capturing one part of the URL and will need to capture the rest.

Viewing 1 replies (of 1 total)

The topic ‘losing relative url’ is closed to new replies.