Redirect ignore last URL segment
I have a page on my WordPress website that I want to effectively have a wildcard on the end of the URL.
The URL is "https://www.mywebsite.com/map". I want that same page to be directed too if it is anything like:
I need the URL to keep the segment though, as I have some JS on the /map page that will read it and send the value to an IFrame.
Is this possible via WordPress admin or via the .htaccess file?