How does WordPress send you to a post, when it's not on the server?
-
Now, I know that the posts are located in the MySQL database. That’s not my question. My question is that I’ve leared that when I type https://www.example.com/something.html it will take me to a file called “something.html” in the root directory of the server where example.com is hosted.
But… I just made a post in my WordPress blog. The URL to that post is “www.example.com/a-test-post”. But I can’t find a file called “a-test-post” in my web hotel.
Of what I’ve learned about this, when there is no file called “a-test-post” I should get a 404 error when I type in the adress.
So, what I am wondering is; how does this work? Why don’t I get a 404 error when there is no file called that on my server? I am asking to learn. Hoping for some WP geniuses to answer.
- The topic ‘How does WordPress send you to a post, when it's not on the server?’ is closed to new replies.