Redirect ignore last URL segment

Question

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:

  • "https://www.mywebsite.com/map/7690e382-786a-412d-9711-966a708c0a38"
  • "https://www.mywebsite.com/map/ef5ae8ba-fcbd-4184-b501-bd79ecdd4ee2"

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?

0
Tom 1 month 2022-08-14T06:06:16-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse