1
I’m creating a news site, and I see sites like G1 and Tecmundo using an automatic indexing for their news, how does it work? Well, I’ll explain it better: I have a file that reads the news through a SELECT using as reference an id (example.com/Reader?id=1), while the most famous news sites use it differently (example.com/this-and-a-news-for-example). How does this work? How can I implement?
I think the name is Slug
– vinibrsl
This feature is called a "user-friendly URL" and for it to work the server must be configured. In the case of Apache servers, configuration is done in the file
.htaccess
, already in IIS servers, the configuration is made inweb.config
. See more here: Learning Friendly Urls– user98628