In my site, I have a basic ‘profiles’ section with profile pages, where there’s a subfolder for each first letter of the users, because else there will be +/- 900 pages in the /profile/ folder. The structure:
mysite.com/social/profile/h/hank
where /h/
is the first letter of the username, and this folder contains all profiles with ‘h’ as first letter of the username.
I would like to visit pages on the front-end like this:
mysite.com/social/profile/hank
So omitting the /h/ (or any letter or number) in the URL and still visit the right page . There’s a guide (https://getkirby.com/docs/developer-guide/advanced/routing) on how to omit the ‘blog’ from a URL with two routes, but how can I do this with a variable folder name (will be 1 letter or number: a-z and 0-9) and still let all other pages work like normal?