How to use the title of a product in the URL?

0

For example I have a page where the products are ready: http://exemplo.com/produtos.php and clicking on any of the listed products the URL gets http://exemplo.com/produtos.php?id=2 .

Assuming that the product of id=2 has a title Relógio Patek Philippe 1928 , how to change the URL so that instead of http://exemplo.com/produtos.php?id=2 is http://exemplo.com/produtos/Relógio-Patek-Philippe-1928 as it does here in SOpt?

    
asked by anonymous 10.11.2016 / 13:57

0 answers