« Back to Glossary Index

URL rewriting is the technical process of transforming a raw, database-style URL — like `?p=123` — into a clean, human-readable URL, such as `/how-to-start-a-blog/`, without actually changing the underlying page it points to.

WordPress uses rewrite rules, typically stored in a site's .htaccess file (on Apache) or configured directly at the server level (on Nginx), to translate a clean, friendly URL back into the actual underlying database query needed to display the correct content.

  • Considerably easier for visitors to read, remember, and share
  • Better for SEO, since they can meaningfully incorporate relevant keywords
  • Look noticeably more professional and trustworthy than a raw query string
  • More resilient if a site's underlying database structure ever changes internally

This is largely handled through WordPress's own Permalinks setting (Settings → Permalinks), which lets a site owner choose a URL structure without needing to write or understand any of the underlying rewrite rules directly.

« Back to Index
Share This