For example, I have the following URL: www.site.com?page=products&action=view&id=1023 I have this PHP code:
<?php
echo $_GET['page'];
echo $_GET['action'];
echo $_GET['id'];
?>
That wors fine. But I want to rewrite the URL to
www.site.com/products/view/1023
So, the names of the arguments, and some characters like ? and & are removed. The URL would be:
www.site.com/products/view/1023
How do I say to PHP which GET variable I want to use? The names in the UL are away. I am making a PHP router, and I don't understand how parameters are passed by rewritten URL's.