-1
I’m making a business guide website, but when user views the details of this company the URL appears as follows:
www.nomedomeusite/detalhes.php?id_empresa=24
The id_empresa=24
I’m picking up via $_GET['id_empresa'];
.
I wonder if it has how to be:
www.nomedomeusite/id_da_empresa/nome_da_empresa.html
This would be the link to access:
<a href="detalhes.php?id_empresa=<?php echo $id_empresa; ?>"><button type="button">ver detalhes</button></a>
Has https://httpd.apache.org/docs/current/mod/rewrite.html
– MagicHat