I'm building a dynamically populated profile page for my site users. This currently uses the following URL structure:
https://example.com/members-list-profile/?&uid=XX
I'd like to improve the look of the URL by inserting the user's nicename to create this URL structure:
https://example.com/members-list-profile/{nicename}/?uid=XX
I know I should be able to do this using a fairly simply rewrite rule in .htaccess
, but haven't been able to get the right rule setup.
How can I get this structure / rewrite setup?
{nicename}
part of the URL?