What Is a URL Slug? How to Create SEO-Friendly Links (Turkish Character Rules)
Updated: November 6, 2026 · AracMerkezi
The part of a page’s address that comes after the domain name and identifies the page is called the slug. In the address aracmerkezi.online/rehber/yuzde-nasil-hesaplanir/, yuzde-nasil-hesaplanir is the slug. A good slug gives both the visitor and the search engine a hint about what the page is about. This guide shows, with examples, how to convert a Turkish title into a slug step by step, the Turkish character and capital “İ” traps, and what happens if you change an address after publishing. Writing a slug does not guarantee ranking; it only provides a clean and understandable address.
What should a good slug look like?
- Short and clear: It should contain the main words in the page title.
- Lowercase: On some servers, a difference in upper and lower case means a separate address.
- Separated by hyphens: Search engines treat the hyphen as a word separator. Underscores are not recommended.
- No Turkish characters: Use i, s, c, g, u, o instead of ı, ş, ç, ğ, ü, ö; that way the address does not break when shared.
- No unnecessary words: Conjunctions such as “ve,” “bir,” “için” (and, a, for) can often be dropped.
- No dates or numbers that will expire: Do not put information in the address that will lose its validity.
From title to slug: five steps
The sequence below converts a title into a slug safely. It is also what the tool on our site does:
- Trim leading and trailing spaces.
- Lowercase with Turkish rules: “I” → “ı”, “İ” → “i”.
- Convert Turkish letters to their Latin equivalents: ı→i, ş→s, ç→c, ğ→g, ü→u, ö→o.
- Replace every run of non-letter, non-digit characters with a single hyphen: spaces, punctuation, apostrophes, & and so on.
- Remove leading and trailing hyphens.
As a sixth step, consider shortening the slug: keep the main words and drop the filler.
Examples
| Title | Slug |
|---|---|
| Çiğ Köfte Tarifi: Evde Kolay Yapılış! | cig-kofte-tarifi-evde-kolay-yapilis |
| İstanbul’da Gezilecek 10 Yer | istanbul-da-gezilecek-10-yer |
| Kredi Taksiti Nasıl Hesaplanır? | kredi-taksiti-nasil-hesaplanir |
| Türkiye’nin En Güzel 10 Şehri | turkiye-nin-en-guzel-10-sehri |
| Şişli – Beşiktaş Ulaşım Rehberi (2026) | sisli-besiktas-ulasim-rehberi-2026 |
| C++ ve C# Karşılaştırması | c-ve-c-karsilastirmasi |
| Elma & Armut | elma-armut |
Because the apostrophe is treated as a separator, “İstanbul’da” becomes istanbul-da; if you like, you can drop the apostrophe and write istanbulda. What matters is that you apply a single rule consistently across your site. Symbols such as “C++” and “C#” drop out entirely; if two different titles convert to the same slug, separate them by hand (for example, c-plus-plus).
The “İ” and “I” trap
If you lowercase the capital “İ” without Turkish rules, you run into trouble. In JavaScript, 'İSTANBUL'.toLowerCase() gives “i̇stanbul” with a combining dot character; when you clean this text with a rule that deletes everything outside a-z, you get i-stanbul (hyphenated, wrong). 'İSTANBUL'.toLocaleLowerCase('tr'), on the other hand, correctly produces “istanbul”. This step is especially important if you write titles in CAPITAL LETTERS.
Length: short or the full title?
For the title “Evde Kolay Çiğ Köfte Tarifi Nasıl Yapılır ve Püf Noktaları,” the full slug is evde-kolay-cig-kofte-tarifi-nasil-yapilir-ve-puf-noktalari and it is 58 characters. cig-kofte-tarifi, which keeps the main words, is 16 characters. A short address is readable when shared and does not get cut off; but a very short and vague slug (tarif) does not describe the topic. In practice, a slug of 3–6 words is balanced for most titles. An addition such as “2026 güncel” makes it 28 characters (cig-kofte-tarifi-2026-guncel) but makes the address go stale the following year.
What happens to an address with Turkish characters?
Modern browsers can display addresses such as çiğ-köfte; but when the address is copied to the clipboard or pasted into a message, it turns into UTF-8 percent-encoding: ş → %C5%9F, https://ornek.com/rehber/çiğ-köfte → https://ornek.com/rehber/%C3%A7i%C4%9F-k%C3%B6fte. It is unreadable and error-prone. That is why using Latin letters in the slug is easier.
The parts of an address
Let us break down the address https://aracmerkezi.online/rehber/yuzde-nasil-hesaplanir/:
| Part | Value |
|---|---|
| Protocol | https |
| Domain | aracmerkezi.online |
| Category path | /rehber/ |
| Slug | yuzde-nasil-hesaplanir |
The slug is the part of the address that you can change and that describes the page’s topic. The category path comes from the site’s structure. Write the slug without repeating the category name: a repetition such as rehber/rehber-yuzde is unnecessary.
Pre-publication checklist
- Does the slug contain the main words from the title?
- Does it have only lowercase letters, digits and hyphens?
- Is the same slug used by another page on the site?
- Does the slug include something that will go stale, such as the year, a price or “new”?
- Is the trailing-slash rule the same as in the rest of the site?
What if I change the slug?
If you change the address of a page that has been published and indexed, links and visitors coming to the old address land on a 404 error. To prevent this, set up a 301 redirect from the old address to the new one. If possible, do not change the slug after publishing. Even with a redirect, links to the old address open through an extra step and redirect chains can build up; the best approach is to choose the right slug from the start. For the meaning of status codes, see the HTTP status codes guide.
URL structure and the trailing slash
Use a single address format for a page on your site (with or without a trailing slash) and merge the other with a permanent redirect; otherwise the same page appears at two different addresses and search engines may get confused about which is the main one.
If the same slug comes up twice
If two pages have the same title, the slugs collide. The solution is to add a distinguishing word to the second page (kredi-hesaplama-konut, kredi-hesaplama-tasit); adding a sequence number such as “-2” also works but is meaningless. Check for collisions before publishing, because changing it afterwards requires a redirect.
Common mistakes
- Deleting Turkish characters in the title: “Çiğ” becomes “ig”; the correct form is “cig”.
- Using underscores or leaving spaces as
%20. - Writing a slug in capital letters and the server treating it as two different addresses.
- Putting information that will go stale, such as a date, a price or “new,” in the slug.
- Changing the slug after publishing and not adding a redirect.
- Producing a very long slug that repeats the whole title.
How do you generate one quickly?
Paste your title into the URL Slug Generator tool; Turkish characters are converted and spaces become hyphens. To inspect an address by breaking it into parts, you can use the URL Parser. For variable names, the Text Case Converter is useful. For encoding special characters in addresses, take a look at the URL encoding guide.
Frequently asked questions
Should Turkish characters be used in a slug?
No; using i, s, c, g, u, o instead of ı, ş, ç, ğ, ü, ö prevents the address from turning into codes such as %C5%9F and breaking.
Hyphen or underscore?
Search engines treat the hyphen as a word separator; the hyphen is recommended.
What happens if I change the slug later?
The old address returns a 404; you need to add a 301 redirect.
Tools mentioned in this guide
More guides
- Turkish Character Problems: How to Convert Text to ASCII – ASCII equivalents of the letters ç, ğ, ı, İ, ö, ş, ü, why you need them, converting by hand in Excel and Word, the İ-ı capitalization trap and garbled characters.
- What Are HTTP Status Codes? 200, 301, 404, 500 and Troubleshooting – What do HTTP status codes mean? Codes 200, 301, 404, 500, testing with curl, the cost of redirect chains, soft 404s and site-migration examples.
- What Is Regex (a Regular Expression)? A Beginner's Guide with Tested Examples and Common Mistakes – What is regex, and what do \d \w + * [] () mean? Date, phone and email examples, greedy matching, the Turkish letter issue and a ReDoS warning.
- What Is chmod? Linux File Permissions 755, 644 and 777 Explained: Reading ls -l, umask and Examples – What is chmod? Read ls -l output, understand 755 644 600 777, symbolic mode, umask and special bits. Commands were run and verified.
- What Are an IP Address, CIDR and a Subnet Mask? How Many Addresses Is /24? A Calculation Method – How do you calculate CIDR notation and subnet masks? The block-size method, network and broadcast addresses, splitting into subnets and private ranges.
This article is for general information only and is not legal, financial or medical advice. We are not an official institution.