Redirect to CMS page url If anything after the url


I have a URL of CMS page like https://example.com/test-page. Now I want to redirect every request to the same URL If anything written after that URL. For Example:

If https://example.com/test-page/list/2 then redirect to https://example.com/test-page
If https://example.com/test-page/produyuct/47/main to https://example.com/test-page

So basically anything after https://example.com/test-page should redirect to https://example.com/test-page itself.