In-Depth Look at WordPress Permalinks and URL Rewriting


In today’s post we are going to take an in-depth look at WordPress permalinks and URL rewriting. According to a 1999 post by Jacob Nielsen, a usable website requires: a domain name that is easy to remember and easy to spell
short URLs
easy-to-type URLs
URLs that visualize the site structure
URLs that are “hackable” to allow users to move to higher levels of the information architecture by hacking off the end of the URL
persistent URLs that don’t change
A URL should never change, as it can be stored and shared in many ways. That’s the reason why we call them permalinks. Furthermore, a URL should be semantic, in the sense of being immediately and intuitively meaningful to non-expert users (more about Semantic URLs on Wikipedia).
In a static web, a URL identifies a resource by its name, as shown in the following example:
http://example.com/path/to/resource/wordpress-permalinks.html
In order to have well structured URLs we just need a well structured file system and properly named resources.
But the web is dynamic, and we are used to manage websites using database driven CMSs, and URLs will contain a number parameters whose values determine the query to be
Source: https://managewp.org/articles/13641/in-depth-look-at-wordpress-permalinks-and-url-rewriting




source https://williechiu40.wordpress.com/2016/10/17/in-depth-look-at-wordpress-permalinks-and-url-rewriting/