Performance: Permalink structure
This affects page load speed by influencing URL parsing and server response time, impacting how quickly content is delivered.
Jump into concepts and practice - no test required
/%year%/%monthnum%/%postname%/
/?p=123| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| /?p=123 | Minimal | 0 | Low | [X] Bad |
| /%year%/%monthnum%/%postname%/ | Minimal | 0 | Low | [OK] Good |
%postname% tag represent in a WordPress permalink structure?%postname%%postname% tag is used to insert the post slug, which is a URL-friendly version of the post title.%year% or %category% represent date or category, not the post slug.%postname% = post slug [OK]%year%, %monthnum%, and %postname%. /%year%/%monthnum%/%postname%/ uses only valid tags.%date%, %title%, or %slug% which are not recognized by WordPress./%category%/%postname%/, what would be the URL for a post titled "Summer Tips" in the "Travel" category?/%category%/%postname%/ means the URL starts with the category slug, then the post slug./travel/summer-tips/./%year%/%postname%/. After changing it to /%postname%/, some old links show 404 errors. What is the likely cause?%category% can cause multiple URLs if a post belongs to multiple categories.%category% from the URL avoids duplicates. Including %year% and %postname% keeps URLs informative.