I am trying to retrieve parts oft an URL in a WordPress installation after paths have been rewritten.
The Parameter I would like to get is a 13 digit number added to the post/page.
E.g. the user is requesting this URL: https://www.example.com/service/1234567892468/ and the path gets rewritten to https://www.example.com/service/. How may I restore the 13 digit parameter.
I am using PHP-snippets in the destination page.
I already tried to use Server-Variables. Maybe the rewrite rules could be adopted for those paths to rewrite to GET parameters that will be kept in the path and be retrieved by the destimation page. Or every URL is checked for the “service/0000000000000” pattern and the parameter is stored in a glonbal or session variable.