As you know, a wordpress post usually can be seen going to a link similar to this:
But actually there is no folder with name
sample-post in the blog.
Until now, I used something like this:
How is wordpress and other sites (I think stackexchange sites do this too) doing this?