Passing a parameter to a permalink

You don’t have to mess with .htaccess since WordPress has it’s own rewrite engine builti in. You are looking for this: https://codex.wordpress.org/Rewrite_API/add_rewrite_rule

tech