I’m quite stumbled trying to figure out which functions / classes in WordPress pickup and analyse the URLs
There are 2 URLs type in WordPress for example
Link 1. http://www.domainname.com/?p=5
Link 2. http://www.domainname.com/clothing/jeans/black/long
I figured out the file wp-included/cananical.php to analyse the link 1 and convert to Link2, then redirect and display Link 2. Its quite clear and easy to analyse the link1 based on parameter “p=5”, but how WordPress can understand the Link2??????????
Is there anyone know which class/method read/ananlyse the Link2 and let me know please.