1
I’m developing a classified site. For each record in the database it is necessary to generate a page for the ad in question, as on the normal classified sites.
I made a generic page that if I received an id, per parameter in the url, would print the stored ad data in a structured way. But instead of a link like I have, of the genre /anuncio.php?id=1
I see other sites have something like this /1.php
,
that is, apparently have a saved page for each ad.
Is that right? How can I generate these individual pages, or make my Urls work like on the websites I’ve sponsored?
Which web server is used? Apache?
– bfavaretto
yes I use apache but I am using local server via xampp
– Pedro Piloto
XAMPP also uses Apache, so it gives anyway :) You will find the answer here: http://answall.com/questions/1326/comorposso-simplificar-os-urls-para-um-site?rq=1
– bfavaretto
In short, you don’t need to generate a page (physical, disk) per ad, just use the Apache URL rewrite module. The link I passed explains how.
– bfavaretto
Thank you for your help
– Pedro Piloto