This is an excerpt from my htaccess file. I actually have more 301 redirects but this should suffice for the question. I think the top bit comes automatically from Wordpress, I certainly didn't write it.
Below the wordpress part there are a bunch of 301 redirects. In reality about 25 301s.
Within the 301s I have 3 URLs with /viz/*
Instead of having to redirect every page individually with viz/* in the URL, how do I redirect everything from with /viz* in one line of code? All pages to be redirected to /services/
# The directives (lines) between `BEGIN WordPress` and `END WordPress` are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# BEGIN 301 Redirects
Redirect 301 /viz/tapestry-threads /services/
Redirect 301 /viz/evergreen-gates-foundation-financial-challenge /services/
Redirect 301 /viz/tiny-habits-data-structure /services/
Redirect 301 /viz /services/