Redirect ignore last URL segment

I was able to get it working by adding the following two lines to my .htaccess, right before the rest of the other WordPress rule

RewriteCond %{REQUEST_URI} ^/map/(.+)$ [NC]
RewriteRule ^(.*)$ /map [L,P]

Bottom of my .htaccess with the rules looked like this:

RewriteEngine On

RewriteCond %{REQUEST_URI} ^/map/(.+)$ [NC]
RewriteRule ^(.*)$ /map [L,P]

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]