• Resolved kingrobb

    (@kingrobb)


    Hello – I have the following URL

    /products/product_item.asp?ID=Item Name Is This
    and I now know how to redirect dynamic URL with

    ^/products/product_item.asp(\?)ID=Item Name Is This
    redirect to
    /products/Item Name Is This/

    But sometimes extra url variables may have been used and indexed by google that we no longer want to handle and I would like to ignore all of those.

    Right now if the following URL is used

    /products/product_item.asp?ID=Item Name Is This&var2=value
    it gets redirect to
    /products/Item Name Is This/&var2=value
    …which is a broken link

    How can get rid of the extra bits I don’t need to get a valid URL?

    Thanks.

    https://www.ads-software.com/plugins/redirection/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try this, with regex on:

    /products/product_item.asp\?ID=(.*?)(&.*)

    /products/$1/

    Let me know if that works. ^_^

    Thread Starter kingrobb

    (@kingrobb)

    Thank you. That did in fact remove the extra bits!

    I used like this …

    ^/products/product_item.asp(\?)ID=Item Name Is This(&.*)
    redirect to
    /products/Item Name Is This but renamed/

    and this removed the extra parameters

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can I strip away extra paramters on source dynamic URL’ is closed to new replies.