Need help with regex | WordPress.org

[ad_1]

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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer