• Resolved 08dennis08

    (@08dennis08)


    Good afternoon,

    For a client i want to redirect alot of generated url’s after a hack. Most of them are like this:

    domain.nl/?m……

    domain.nl/?q……

    or they end with

    domain.nl/……..html

    domain.nl/……..htm

    or they contain

    domain.nl/getid/…..

    domain.nl/get/…..

    How can i make the right regex expression for these variants?

    Thank you in advance!

    The page I need help with: [log in to see the link]

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

    (@alpipego)

    Hi @08dennis08,

    Thank you for using Ultimate 410. The first two are query parameters, and our plugin currently can’t handle those. I’m working on a solution and will let you know once it becomes available.

    If you want to respond 410 for every URL that ends with .html or .htm, this would be the RegEx ~\.html?$~i. Check https://regex101.com/r/HCoJv1/1 for an explanation.

    The correct RegEx for the latter case is ~^get(?:id)?/~i.

    The i at the end signifies that both of these are case-insensitive, i.e., they’ll match .HTML and .html. If you don’t want that, remove the i.

    Best regards,
    Alex

    Thread Starter 08dennis08

    (@08dennis08)

    Thank you for the quick response. I will test the regex option and see how Google responses to this.

    Thread Starter 08dennis08

    (@08dennis08)

    Did you already implemented a way to handle the urls with query parameters? I managed to 410 most of them, but there are still 47 left with the following sequence

    domain.nl/product/product-a/?m=……

    Thank you!

    Plugin Author alpipego

    (@alpipego)

    Hi @08dennis08,
    Unfortunately, this has not yet been implemented. And I also don’t have a timeline when this will be available for the public, sorry.

    Best wishes,
    Alex

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Need help with regex’ is closed to new replies.