How to redirect to specific url if contains specific text in url?

If my website had a directory called dogs (/dogs/) and I had 100 pages like this: –

https://www.codehaven.co.uk/dogs/page1/

https://www.codehaven.co.uk/dogs/page2/

https://www.codehaven.co.uk/dogs/page3/

I would not want to use a plugin to redirect every page manually.
Therefore a redirect rule that looks for /dogs/ is useful like below.

RewriteEngine on

RewriteCond %{REQUEST_URI} /dogs/

RewriteRule .* /