I have a WordPress page which is accessible via /accommodation/.
What I want to be able to do is pass in a parameter using the URL – ie going to /accommodation/value1/ would load the same page as /accommodation/ – but still show the /accommodation/value1/ in the browser address bar.
I guess another way of putting it would be to say I need to be able to access /accommodation/ by adding anything I like to the end of the URL, whilst retaining the URL I entered in the browser window.
I’ve then got some code in the page template which does different things based on the values passed into the page.
Whilst I could use a query string, I want to avoid doing that so I can keep the “pretty URLs”.
Many thanks for any help / suggestions.
Solved it!