Quick BB
PHP 8.2+ & MySQL Buy license · $79.95
SEO

SEO-Friendly Forum URLs: How to Set Them Up

What makes a good forum URL, a proven pattern for threads and profiles, and how to switch from old query-string links without losing traffic.

Updated 4 minute read The Quick BB team

Forum URLs used to look like showthread.php?t=125&page=2. They worked, but they told nobody what was on the page. Friendly URLs use readable words instead, which helps members, makes shared links more inviting, and gives search engines a small extra clue about the topic. This guide explains what a good forum URL looks like and how to switch without losing the traffic you already have.

What makes a URL search friendly

Google's own URL guidelines recommend a few simple things:

  • Use readable words rather than long ID numbers or codes where possible.
  • Separate words with hyphens. Google recommends hyphens over underscores, because underscores are often read as joining words together.
  • Keep parameters to a minimum and drop any that do not change the content.
  • Do not rely on the part after # to show different content, because Google generally does not support URL fragments for that.
  • Be consistent with letter case. Google treats URLs as case-sensitive, so /Threads/ and /threads/ are different addresses.

Keywords in a URL are a small signal, not a magic ranking boost. The bigger wins are that people are more likely to click a link they can read, and that clean, stable URLs avoid duplicate content problems.

A sensible URL pattern for a forum

Here is the pattern Quick BB uses by default. It is a good model whatever software you run:

PageExample URL
Forum/forums/php-programming/
Thread/threads/125-how-to-install-php/
Thread, page 2/threads/125-how-to-install-php/page/2/
Member profile/members/42-name/
Tag/tags/php-hosting/

Notice the number in thread and member URLs. Keeping the ID alongside the words has real advantages:

  • Two threads can share the same title without clashing.
  • If a title is edited, the forum can still find the thread by its number and redirect the old address to the new one.
  • Lookups by ID are fast and reliable on large forums.

Keep URLs stable

The single most important rule is that a URL should keep working forever. Every time a thread's address changes without a redirect, links from other sites, bookmarks, and search results point to an error page.

  • Do not change the pattern often. Pick a structure once and stick with it.
  • Redirect when something moves. If a thread title changes or a forum is renamed, the old address should send a permanent (301) redirect to the new one.
  • Avoid dates in thread URLs unless your forum is news-based. They add length and can make evergreen threads look old.
  • Keep slugs short. Very long titles can be trimmed in the URL while the full title stays on the page.

Switching from old query-string URLs

If your forum already has years of old-style links, switching to friendly URLs needs care. Google describes redirects as a strong signal for choosing which URL to show in search, so a proper redirect from each old address to its new one is the way to keep your existing rankings and links.

  1. Back up first. See the backup and restore guide.
  2. Check your server supports rewrites. Apache and LiteSpeed usually handle this through an .htaccess file; Nginx needs rules in the server configuration.
  3. Turn on friendly URLs and test a handful of forums, threads, and profiles.
  4. Test the old links. Paste some old ?t= style addresses into your browser and confirm they redirect straight to the new page, not to the home page.
  5. Update your sitemap so it lists only the new addresses.
  6. Watch Search Console over the following weeks for crawl errors or pages reported as not found.

Quick BB redirects old ?f=, ?t=, and ?u= links to their friendly versions automatically, which also helps when you migrate from other forum software that used similar parameters. It supports Apache and LiteSpeed, and Nginx instructions are supplied.

Canonical tags and duplicate URLs

Even with clean URLs, forums create duplicates: a thread reached with a tracking parameter, a sort order, or a link to a specific post. A canonical tag in the page header tells search engines which version is the main one.

  • Use absolute URLs in canonical tags, including https:// and your domain. Google recommends this over relative paths.
  • Each page of a long thread should normally have its own canonical URL. Google advises against pointing every page in a paginated series at page one.
  • Do not use robots.txt to handle duplicates. Google says not to use it for canonicalization, because blocked pages cannot be read at all.

Quick BB outputs canonical URLs on its pages by default.

Common mistakes to avoid

  • Mixing http and https, or www and non-www. Choose one version of your domain and redirect the rest to it.
  • Trailing slash inconsistency. Pick with or without a trailing slash and redirect the other.
  • Session IDs in URLs. These create a new URL for every visitor and waste crawl time.
  • Changing URLs during a redesign. A new skin should never require new addresses. If you are changing your look, see customizing forum skin colors, which changes nothing about URLs.
  • Redirecting everything to the home page. Old links should point to the matching new page, not a generic one.

Where URLs fit in your wider SEO

Good URLs are one part of a solid forum SEO setup, alongside clear titles, a clean sitemap, and keeping spam out. The forum SEO guide covers the full picture, and the XML sitemap guide explains how to list your new URLs for search engines. Quick BB's friendly URLs and redirects are listed on the features section of the home page.

Frequently asked questions

Should forum URLs use hyphens or underscores?

Use hyphens. Google recommends hyphens between words because underscores are often read as joining words together.

Why keep the thread ID in the URL?

An ID lets two threads share a title, lets the forum redirect correctly when a title changes, and keeps lookups fast on large forums.

Will switching to friendly URLs hurt my rankings?

Not if every old URL sends a permanent redirect to its matching new page. Test old links and watch Search Console for errors afterward.

Get three guides like this every month, plus software update notices.Subscribe →