optimizacion-conversion

Permalinks: URL Guide for SEO and Web

Adrià Vidal7 min read
permalinktechnical SEOURL structureindexationNext.js

A page's URL is like its postal address: if it's clear and logical, everyone knows where to find it. If it's a mess of parameters and IDs, nobody remembers it and Google doesn't understand it well either.

A permalink (permanent link) is the unique and definitive URL of a web page. It is called "permanent" because, ideally, it should never change: it is the address that other sites will link to, that Google will index and that users will save in their bookmarks.

The structure of permalinks has a direct impact on SEO, user experience and the ease of maintaining a website. In this guide, we cover everything you need to know to configure them correctly.

What Is a Permalink

Technically, a permalink is any URL that uniquely and permanently identifies a resource on the web. In practice, when we talk about permalinks we refer to the structure of a site's URLs: how they are formed, what information they contain and how they are generated.

Anatomy of a URL

https://www.example.com/blog/ecommerce-conversion-guide
│       │               │    │
│       │               │    └── Slug (the specific permalink)
│       │               └─────── Directory structure
│       └─────────────────────── Domain
└─────────────────────────────── Protocol

The slug is the variable part of the URL that identifies each specific page. It is the element with the most SEO impact and the one that requires the most decision-making when creating content.

Permalink Best Practices for SEO

1. Short and Descriptive URLs

Short URLs are easier to remember, share and perform better in click-through from search results.

Good:

/blog/heuristic-analysis-guide
/products/mens-running-shoes

Bad:

/blog/2024/03/15/complete-guide-to-heuristic-analysis-for-ecommerce-and-digital-businesses
/products/category/running/men/trail-and-road-shoes-with-cushioning

The general recommendation is to keep slugs below 5-6 words whenever possible.

2. Include the Main Keyword

The slug should contain the main keyword of the page. This helps Google understand the topic of the content and improves CTR in search results.

PageRecommended slug
Post about conversion rate/blog/conversion-rate-guide
CRO services landing/services/cro-agency
Specific product/trail-running-shoes-men

3. No Dates in the Slug

Including dates in URLs creates long-term problems:

  • Content looks "old" even if it has been updated
  • If you refresh the post, the date in the URL no longer matches
  • Reduces CTR in SERPs (users prefer recent content)

Avoid:

/blog/2024/heuristic-analysis-guide
/blog/2024-03-15-cro-guide

WordPress uses dates in permalinks by default. Changing it to "Post name" is one of the first settings that should be made on any new site.

4. Lowercase and Hyphens, No Spaces or Special Characters

URLs should use lowercase letters and hyphens (-) as separators. Underscores (_) are technically valid but Google treats them differently: "heuristic_analysis" is treated as a single word, while "heuristic-analysis" is treated as two separate words.

Rules:

  • Lowercase only: /cro-guide not /CRO-Guide
  • Hyphens as separators: /heuristic-analysis not /heuristic_analysis
  • No spaces (encoded as %20)
  • No accented characters or special characters
  • No parameters in indexable URLs: /product/sneakers not /product?id=123&color=red

5. Logical Hierarchical Structure

The URL should reflect the site architecture in a logical way:

/blog/category/post-name
/products/category/product-name
/services/service-name

This helps both users (who can infer where they are in the site) and Google (which understands the relationship between pages).

6. No Trailing Slash (or With, But Consistent)

The trailing slash is the bar at the end of the URL (/blog/post/ vs /blog/post). Google treats both as different URLs, so it is essential to choose one convention and be consistent.

The most important thing is that both versions do not exist simultaneously: one must redirect to the other via 301.

How to Configure Permalinks in WordPress

WordPress offers several permalink structures in Settings > Permalinks:

OptionExampleRecommendation
Plain/?p=123Never use
Day and name/2024/03/cro-guideDo not use
Month and name/2024/03/cro-guideDo not use
Numeric/archives/123Do not use
Post name/cro-guideRecommended
Custom structure/blog/%postname%Recommended if you need a prefix

Recommended configuration: "Post name" or custom structure with category prefix if the site has a lot of mixed content.

Changing Permalinks in an Existing WordPress

If you change the permalink structure in an existing WordPress, all URLs change. To avoid losing accumulated SEO, you must:

  1. Create 301 redirects from all old URLs to the new ones
  2. Use a plugin like "Redirection" to manage the redirects
  3. Update the sitemap and submit it to Google Search Console
  4. Update all internal links on the site

How to Manage Permalinks in Next.js

In Next.js, permalinks are defined by the file system structure in the pages/ folder (Pages Router) or app/ (App Router).

App Router (Next.js 13+)

app/
  blog/
    [slug]/
      page.tsx  → /blog/[slug]
  services/
    cro-agency/
      page.tsx  → /services/cro-agency

Dynamic slugs are generated with generateStaticParams for SSG or served dynamically.

Redirects in Next.js

To manage URL changes without losing SEO, redirects are defined in next.config.js:

redirects: async () => [
  {
    source: '/blog/old-slug',
    destination: '/blog/new-slug',
    permanent: true, // 308 in Next.js (equivalent to 301)
  },
]

URLs with Internationalisation

In multilingual sites, the recommended convention is the locale prefix:

/es/blog/analisis-heuristico-guia
/en/blog/heuristic-analysis-guide
/fr/blog/analyse-heuristique-guide

Impact of Permalinks on Indexation

URL structure directly affects how Google crawls and indexes a site:

Click Depth

Google has more difficulty crawling pages that are very "deep" in the site structure. A URL like /a/b/c/d/e/f/post suggests that the page is 6 levels from the homepage, which can harm its indexation.

The recommendation is that no important page should be more than 3-4 clicks from the homepage.

URL Parameters

URLs with parameters (?color=red&size=M) can create duplicate content problems. Google may crawl multiple parameter combinations as if they were different pages with the same content.

Solution: use Google Search Console to tell Google how to handle parameters, or implement canonical tags.

Canonicalisation

When there is a risk of duplicate content (same content on multiple URLs), the canonical tag tells Google which is the "master" URL:

<link rel="canonical" href="https://example.com/blog/heuristic-analysis-guide" />

Common Mistakes with Permalinks

MistakeImpactSolution
Changing URLs without redirectsLoss of SEO positioningAlways 301 when changing URLs
URLs with special charactersEncoding problemsOnly letters, numbers and hyphens
Duplicates due to trailing slashDuplicate contentCanonical + consistent redirect
Slugs that are too longLower CTR, worse UXMaximum 5-6 relevant words
IDs instead of wordsNot descriptive, bad SEOAlways keywords in the slug
Dates in evergreen content URLsContent appears outdatedRemove dates from slug
Inconsistent capitalisationDuplicate URLsAlways lowercase, 301 redirect

When to Change a Permalink (and When Not To)

Never change a URL without a redirect if:

  • The page has external backlinks
  • It is well positioned in Google
  • It has significant organic traffic

It may be necessary to change if:

  • The slug does not contain the main keyword
  • The URL is extremely long and confusing
  • There is a typo in the URL

When necessary to change, the process is:

  1. Create the 301 redirect from the old URL to the new one
  2. Update all internal links
  3. Notify Google via Search Console

Conclusion

Permalinks are one of those "technical" elements that have a real impact on SEO and user experience. A clear structure, with relevant keywords and no dates, is one of the best long-term investments for a website.

Do you have indexation problems or poorly structured URLs on your site? Try Scan&Boost for a free diagnosis of your website.

If you need help optimising the technical architecture of your site for conversion, talk to us.


— Adrià Vidal, Boost

Adrià Vidal

Adrià Vidal

CEO & Founder

Founder of Boost. Specialist in digital analytics, CRO, and artificial intelligence applied to digital business optimization.

Related articles

optimizacion-conversion9 min read

Bing Ads: Guide for Ecommerce in 2026

Complete Microsoft Advertising (Bing Ads) guide for ecommerce: how to set up campaigns, import from Google Ads, bidding strategies and key metrics to...

Permalinks: URL Guide for SEO and Web | Boost