I want to redirect a if URL match defined strings using .htaccess in a single line code
If URL is
Redirect URL
I tried this but i want to define string (e.g. books, mobiles, books) instead of (.*)
RewriteRule ^(.*)/xyz/?$ upcoming/index.html [NC,L]