I need help with a question I have. The URLs of blogs in general on the web are by directories for example: www.qualquercoisa / post / post-example.
I'm creating a blog that is dynamic and I use parameters in the URL to display the content on the page, for example: www.qualquercoisa.com/ post? id = 1.
The database has a table named post
, example:
nome varchar | conteúdo: <h1>Meu primeiro post</h1>
conteudo varchar | conteúdo: <p>Este é o meu conteudo do primeiro post</p>
When the user clicks the link, it goes to a file named post
and along with it the post ID to display. With the ID I get the name and content in the database.
Doubt: Is it wrong to do this? The normal blogs have to create a file with the post when they want to post a story? Creating a file for each post would not weigh on the server?