Hi @hummelmose
Sorry, did you understand my previous comment? Seems like you have gone in a completely different direction to what I have just said.
WP looks at the URL and then runs the appropriate template. On the template you can use ACF to load the custom field data.
If this is not what you want, please re-describe your question with more clarity.
Thanks
E