As you know, a WordPress post can usually be seen going to a link similar to this:
There is no folder named
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?