Do I need to generate separate pages for each ad to have a URL without parameters?

Asked

Viewed 23 times

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?

  • yes I use apache but I am using local server via xampp

  • 1

    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

  • 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.

  • Thank you for your help

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.