I am interested in knowing the mechanism of how wordpress creates URLs for pages. I want to know how it uses the title of the page (that is stored in the database) to create the URL and then how it gets to that specific entry when the url is entered in the browser.
Generally, when we enter the url of something, a file with corresponding name is presented. But in wordpress' case, no separate file is created for each page. It is just the page.php file the appears for every single query (for pages). One way of doing this is by creating URLs like yourdomain.com/page.php?page=page1 and then using the $_GET superglobal to present the corresponding information to the user. But the wordpress' style is way better than this because it involves the database and is Search engine friendly.
It is a advanced question, but I couldn't post it in the advanced section so I posted it here.