How does the automatic indexing of a blog work?

Asked

Viewed 26 times

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?

  • 1

    I think the name is Slug

  • 2

    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 in web.config. See more here: Learning Friendly Urls

No answers

Browser other questions tagged

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