Friendly URL
A friendly URL (also called a clean URL) is a readable, descriptive link built from human-legible words instead of technical identifiers and query parameters. Instead of shop.com/index.php?id=42&cat=7, the visitor sees shop.com/boots/hiking — the address itself hints at what the page contains. Friendly URLs improve both user experience and search rankings.
How a friendly URL works
A well-designed friendly URL follows a few principles:
- Readability — it is made of words, not numbers or random strings.
- Brevity and logical structure — the directory hierarchy mirrors the site's structure (e.g. /category/product).
- Hyphens as separators — words are split with a dash, never an underscore or a space.
- Lowercase, ASCII only — this avoids duplicate-URL and encoding problems.
- Keywords — a target phrase in the path is one of the on-page SEO signals.
Technically, friendly URLs are produced through URL rewriting. Apache handles it in the .htaccess file via mod_rewrite, while Nginx does it inside a location block. The rule maps the clean address onto the actual script call running in the background.
Friendly URLs in practice
Clean addresses are now the default in nearly every CMS and e-commerce platform:
- WordPress — the permalinks setting generates /post-name style addresses instead of /?p=123.
- Online stores — readable product paths build trust and look better in search results.
- Sharing links — a descriptive address on social media or in email invites clicks more than a string of parameters.
When you change your URL structure, remember to map old paths to new ones with a 301 redirect so you don't lose earned rankings and inbound links.
Powiązane pojęcia
Najczęstsze pytania
How does a friendly URL differ from a regular one?
A regular URL often carries parameters such as /index.php?id=42&cat=7 that mean nothing to a human. A friendly URL describes the content in words, e.g. /hosting/vps-servers. Both may resolve to the same page, but the friendly one is easier to remember and better for SEO.
