I want to get url friendly for pass data to page from other page. I explain :
I have on i classic wordpress page, url like it : ( example.com/agent/name_agent ) it's url build dynamically. ( get_permalink($id_page_agent) . $name_agent )
In my loop-agent.php , i can manage $_GET['agent_name'] to make a filter.
I need to build redirection example.com/agent/name_agent > example.com/agent/?agent_name=name_agent
I don't know if you understand ?