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 ?

up vote 1 down vote accepted

Rather then trying implement something for you, I would recommend you to read these two nice articles about Rewrite API: The Rewrite API: The Basics and The Rewrite API: Post Types & Taxonomies. Spare no effort to read these articles and it will help you a lot in a future.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.