PingTalks PingTalks
SEO How to 12 min read

SEO-Friendly URLs: 12 Rules, Examples and Safe URL Changes

What Google actually says about URL structure, 12 rules with Indian examples, and the safe way to change a URL without losing rankings.

Laptop screen showing a clean SEO-friendly URL in the browser address bar

Key takeawaysThe story in 20 seconds

01Google’s URL structure guidance asks for readable words, hyphens instead of underscores, one letter case and no needless parameters.

02Google’s SEO Starter Guide says keywords in a URL path alone have hardly any effect on rankings, so SEO-friendly URLs mainly help users and crawling.

03Google treats /page and /page/, and /Page and /page, as separate URLs, so pick one format and 301 redirect the other.

04Hindi and regional language URLs are allowed by Google, provided non-ASCII characters are percent-encoded in link markup.

SEO-friendly URLs are short, readable web addresses built from lowercase words separated by hyphens, so a person can guess what the page is about before clicking. Google’s own documentation asks for exactly that, and it also says the words in a URL have very little direct effect on rankings.

So the real job is not stuffing keywords into slugs. It is building a clean, stable URL structure that Google can crawl without waste, and changing it only with proper 301 redirects. This guide gives you the 12 rules, good vs bad examples, the WordPress settings and the safe way to change URLs.

What are SEO-friendly URLs?

An SEO-friendly URL is a web address that uses descriptive words your audience understands, separates them with hyphens, stays in one letter case, avoids needless parameters and does not change once published. It helps users judge a result in Google, helps Googlebot crawl efficiently, and keeps your link signals in one place.

Compare example.in/sarees/banarasi-silk/ with example.in/index.php?id=48213&sid=789. The first tells a shopper and a crawler what to expect. The second tells them nothing and invites duplicate copies of the same page.

URL optimization sits inside technical SEO. If you are still building the basics, start with our complete SEO guide for beginners and marketers and come back here.

What does Google say about URL structure?

Google Search Central’s URL structure page says to use simple, descriptive words rather than long ID numbers, separate words with hyphens instead of underscores, use the language your audience searches in, percent-encode non-ASCII characters in links, and remove parameters that do not change the content. It also warns that URL case matters.

A few more points from Google’s documentation are worth knowing before you touch a single slug:

  • Fragments are not pages. Google generally does not support URL fragments such as /#/potatoes for changing content. Use the History API for JavaScript sites.
  • Parameters have a standard format. Use = for key and value, & between parameters, and a comma for several values of one key.
  • Session IDs belong in cookies. Google lists referral IDs, sort parameters and session IDs as causes of duplicate URLs.
  • Keywords in URLs barely count. Google’s SEO Starter Guide says keywords in a domain or URL path alone have hardly any ranking effect. Their visible value is in breadcrumbs shown in results.
1 yearMinimum time Google’s site move guide says to generally keep redirects live
180 daysHow long Google’s Change of Address tool prioritises the new site, per Search Console Help
Under 5Redirect hops Google’s site move guide allows, ideally no more than 3

The 12 rules for SEO-friendly URLs, with good vs bad examples

These 12 rules combine Google’s documented guidance with what we see on Indian business sites every week. The examples use Indian e-commerce and service sites, but the logic is universal. Fix the ones that cost you crawl budget or duplicate pages first. Cosmetic ones can wait for a redesign.

RuleGoodBad
1. Use readable words, not IDs/sarees/banarasi-silk//index.php?id=48213
2. Separate words with hyphens/summer-kurtis//summer_kurtis/ or /summerkurtis/
3. Keep everything lowercase/seo-friendly-urls//SEO-Friendly-URLs/
4. Use your buyer’s words/mobile-covers//handset-protective-accessories/
5. Cut filler and stop words/blog/gst-registration-steps//blog/a-complete-guide-on-how-you-can-do-gst-registration/
6. Keep years out of evergreen slugs/blog/diwali-sale-ideas//2026/10/24/diwali-sale-ideas-2026/
7. Group related pages in folders/services/seo//page-17/
8. Drop parameters that change nothing/shoes/running//shoes/running/?sessionid=ab12&ref=wa
9. Use standard parameter syntax?color=purple,pink&sort=low-to-high?[color:purple]
10. Never use fragments for content/products/potatoes//#/potatoes
11. Pick one trailing slash format/blog/seo/ only/blog/seo and /blog/seo/ both live
12. Percent-encode non-ASCII in links/sarees/%E0%A4%B8%E0%A4%BE%E0%A4%A1%E0%A4%BC%E0%A5%80/Raw Devanagari typed into the href

Rules 1, 2, 3, 8, 9, 10 and 12 come straight from Google’s URL structure page. Rule 7 comes from the SEO Starter Guide, which says grouping pages in directories helps Google learn how often each section changes on sites with more than a few thousand URLs. Rule 11 comes from Google’s trailing slash post. Rules 4, 5 and 6 are PingTalks practice.

Pro tip: Rule 4 is where keyword research pays off in slugs. Check what your buyers actually type, Hinglish included, with the methods in our keyword research guide, then name the folder after that phrase.

SEO-friendly URL in a browser address bar
A clean slug tells users and Google what the page holds before the click.

In WordPress, go to Settings, then Permalinks, choose the Post name structure, which produces addresses like example.com/sample-post/, and click Save Changes. Then edit each post’s slug in the editor to a short, hyphenated phrase. Avoid Plain, which creates ?p=123, and avoid Numeric for anything you want found.

WordPress.org documentation lists six permalink options on that screen:

OptionExample formatPingTalks view
Plain/?p=123Avoid. No words at all.
Day and name/2008/03/31/sample-post/Only for pure news sites.
Month and name/2008/03/sample-post/Dates the content forever.
Numeric/archives/123Avoid.
Post name/sample-post/Best default for most sites.
Custom structureBuilt from tags such as %postname%Use for a category folder, if you must.

The same screen has optional Category base and Tag base fields. Leave them blank to keep WordPress defaults, or set a prefix such as /topics/. After saving, WordPress either writes the rewrite rules itself or shows a message asking you to update .htaccess by hand.

Warning: Changing the permalink structure on a live site changes every post URL at once. Treat it as a migration, map old to new URLs and set 301 redirects before you click Save Changes.

How should you handle URL parameters and faceted navigation?

Handle parameters by removing any that do not change the content, such as session IDs, referral tags and sort orders, and by controlling faceted filter URLs. If filtered pages do not need to rank, block them in robots.txt. If some filters deserve to rank, use standard & separators, a fixed filter order and 404s for empty combinations.

Faceted navigation is the filter panel on category pages: price, size, colour, brand. Google’s faceted navigation guide, last updated 18 December 2025, says these filters can create an almost endless number of URLs. Crawlers cannot tell a useful filter URL from a useless one until they fetch it, so new pages get found more slowly.

Google’s options, from strongest to weakest for crawl control:

  • robots.txt disallow on filter parameters, while allowing one unfiltered listing page.
  • URL fragments for filters, which Google generally ignores for crawling and indexing.
  • rel=”canonical” to the unfiltered page, which Google calls less effective in the long run.
  • rel=”nofollow” on filter links, which only works if every link to the filtered URL carries it.

Our take for Indian D2C stores on Shopify or WooCommerce: let one or two high-demand filters rank as clean folders, such as /kurtis/cotton/, and keep the rest out of the crawl. Ad tracking tags like ?gclid= or ?utm_source=whatsapp should never be the version Google indexes, which is why Google’s duplicate URL guide recommends a self-referencing canonical on the clean page.

Do trailing slashes and uppercase letters matter for URL structure SEO?

Yes. Google treats /APPLE and /apple as two different URLs, and it treats /foo and /foo/ as two different URLs too. If both versions return the same page with a 200 status, you create duplicates. Pick one format, use it in internal links and sitemaps, and 301 redirect the other.

Google’s 2010 post “To slash or not to slash” says the root is the exception: example.com and example.com/ are equivalent. For directory-style URLs it calls the trailing slash more conventional, but lets you choose. The rule that matters is consistency.

Case problems usually come from humans, not CMSs. Someone types /Offers/ in a WhatsApp broadcast or a print QR code, and now two versions exist. Force lowercase at the server and redirect anything else. Our internal linking mistakes guide shows how inconsistent links leak signals the same way.

developer setting up URL redirects for SEO
Redirect rules decide which URL version Google keeps.

Can you use Hindi or regional language URLs?

Yes. Google’s URL structure page says to use words in your audience’s language, transliterated where that fits, and shows non-Latin examples such as Japanese. URLs travel in UTF-8, so in your HTML href you should percent-encode non-ASCII characters. Unreserved ASCII characters can stay as they are.

Here is what that looks like for a Hindi saree page. The readable slug is /sarees/साड़ी/. Your link markup should carry /sarees/%E0%A4%B8%E0%A4%BE%E0%A4%A1%E0%A4%BC%E0%A5%80/. Google gives the same treatment to accented Latin letters and even emoji.

Should you do it? Our rule of thumb:

  • Use Devanagari, Tamil or Bengali slugs when the page itself is in that language and your audience searches in that script.
  • Use transliterated slugs such as /kurti-design/ when buyers search in Hinglish, which is common in Indian fashion and food searches.
  • Use English slugs for English pages, even if the brand is regional.

One practical downside: encoded URLs look long and messy when copied into WhatsApp, email or a spreadsheet. If your traffic depends on shared links, transliteration is often the cleaner choice. For multi-regional sites, Google recommends a country domain such as example.de or a subfolder such as example.com/de/.

How do you change URLs without losing rankings?

To change URLs safely, map every old URL to its new one, add server-side 301 or 308 redirects straight to the final page, update canonicals, internal links and sitemaps, then submit the new sitemap in Google Search Console. Keep the redirects for at least a year, and expect rankings to fluctuate for a few weeks.

Google’s 301 redirect documentation says permanent redirects make the target the canonical URL, while temporary ones such as 302 and 307 can keep the old URL in results. Use permanent redirects when you are sure the change will not be reverted. JavaScript redirects are a last resort because rendering can fail.

The step-by-step process

  1. Build the URL map. Pull old URLs from sitemaps, server logs, analytics and your CMS. Include images, PDFs, CSS and JavaScript files. Put old and new URLs side by side in a sheet.
  2. Return 404 or 410 for dropped pages. Do not redirect hundreds of old URLs to the home page. Google’s site move guide warns against sending them to an unrelated page.
  3. Set one-hop 301 redirects. Point each old URL to its final destination. Google wants chains ideally no longer than 3 hops and fewer than 5.
  4. Update canonicals, hreflang and internal links. Each new URL gets a self-referencing canonical. Change menus, footers and in-content links to the new URLs.
  5. Submit the new sitemap in Search Console. Open Sitemaps in the verified property, submit the new file and remove the old one after Google picks up the change.
  6. Use Change of Address only for domain moves. In Search Console, open the Change of Address tool from the old domain-level property and fix any critical check it flags. It is not needed for path changes, HTTP to HTTPS or www to non-www.
  7. Monitor and keep redirects. Watch the Search Console indexing and Sitemaps reports plus server logs. Keep redirects at least a year, and longer if old URLs still get traffic.

Search Console Help adds that Change of Address needs you to own both properties with the same Google account, works only on domain-level properties, and shows a move notice for 180 days. For the wider project plan, read our seven steps for a flawless website migration and our analysis of how much time to allocate for SEO migrations.

URL mapping plan for a website migration
Every old URL needs a mapped, one-hop destination before launch.

How long should a URL be for SEO?

There is no official length that Google rewards. Google’s URL structure page sets no word or character limit, and its SEO Starter Guide says keywords in the URL path alone have hardly any ranking effect. Aim for a slug a human can read aloud, usually the core topic in three to five words.

Three URL myths we still hear from Indian clients:

  • “Exact-match keyword slugs rank higher.” Google says URL keywords barely move rankings. Clarity for users is the real gain.
  • “Change old slugs to add keywords.” Google’s Starter Guide advises against dropping everything to reorganise a site. A rename costs a redirect hop and a period of fluctuation for almost no gain.
  • “Underscores and hyphens are the same now.” Google still recommends hyphens and lists underscores as not recommended.

A good URL is boring, short and permanent. The best slug is the one you never have to redirect.

If your pages are not ranking, the URL is rarely the cause. Check content, intent and internal links first with our guide to why your website is not ranking, and run a technical SEO audit to find duplicate URL versions.

PingTalks verdict

Get URL structure right on new pages and leave working old URLs alone. Fix duplicates from parameters, case and trailing slashes, because they waste crawl and split signals. Rename a live URL only when it is broken, misleading or part of a planned migration, and always with a one-hop 301.

What to do now

  • Set WordPress permalinks to Post name, or confirm your CMS uses readable slugs.
  • Check that /page and /page/ do not both return 200. Redirect the duplicate.
  • Force lowercase URLs at the server and fix any uppercase internal links.
  • Block useless filter and sort parameters in robots.txt, and keep tracking tags out of the index.
  • Percent-encode any Hindi or regional slugs in your link markup.
  • Before any URL change, build a full old-to-new map and test every 301.
  • Keep redirects for at least a year and watch Search Console indexing reports weekly.

Frequently asked questions

Does changing a URL hurt SEO?

A URL change can cause temporary ranking fluctuation, which Google’s site move guide says to expect. With a one-hop 301 redirect, updated internal links and a new sitemap, Google transfers signals to the new URL. Without redirects, you lose the old page’s links and traffic.

Should I use hyphens or underscores in URLs?

Use hyphens. Google’s URL structure documentation recommends hyphens to separate words and lists underscores as not recommended. Joined words with no separator are also not recommended.

Should I remove dates from WordPress URLs?

For new sites, choose the Post name permalink so evergreen posts do not look outdated. On an established site, removing dates changes every URL, so only do it as a planned migration with 301 redirects for every post.

Is a 302 redirect bad for SEO?

A 302 is not bad, it is temporary. Google’s redirect documentation says temporary redirects may keep the old URL in search results, so use 301 or 308 for permanent URL changes and 302 or 307 only for short-term moves.

Do I need the Change of Address tool when I change URL slugs?

No. Search Console Help says the Change of Address tool is for moving to a new domain or subdomain. Path changes on the same domain, HTTP to HTTPS and www to non-www moves only need redirects and updated sitemaps.

Can a URL contain Hindi characters?

Yes. Google supports URLs in your audience’s language, and they are sent as UTF-8. Write the slug in Devanagari, but percent-encode those characters in your HTML links, as Google’s URL structure page recommends for all non-ASCII text.

Sources

Kousik BhattacharyaEditor, PingTalks

Digital Evangelist and Entrepreneur at Clickseek Digital. A results-oriented marketing leader with an 18+ year track record driving transformative growth for diverse global businesses. Expert in performance marketing, demand generation, customer acquisition, strategic partnerships, and market expansion within B2B SaaS, Consumer-Tech, Fintech, Travel/Hospitality, and CRM/ITES Solutions sectors. IIM alumnus with a strong analytical background and a string of accolades, including "Top 50 Most Influential E-Commerce Professional of India" and "Top 100 Digital Marketer of India."

Two stories a day. Zero noise.

What changed in marketing and AI, why it matters and exactly what to do. In your inbox at 11:00 IST.