MyBB SEO: clean URLs, permalinks and an XML sitemap

amtekkie · Today

Search-friendly addresses such as /thread/my-topic instead of showthread.php?tid=5, with server rules written and tested for you, old addresses redirected and an automatic XML sitemap.

In short
  • Activate SEO (works under every theme); open MyStudio → SEO → Permalinks
  • Pick Name only or ID and name and keep it
  • Submit /sitemap.xml to Google and Bing

Choose a permalink type

MyStudio SEO permalinks settings for MyBB clean URLs
(1) The address style. (2) Server rules: written by MyStudio or added by you. (3) Base words for each kind of address.
TypeExample
Plain (default)showthread.php?tid=5
MyBB SEOthread-5.html
ID and name/thread/5-my-title, /forum/12-general-discussion
Name only/thread/my-title, /forum/general-discussion

Forums, threads, posts, profiles, announcements, calendars and events follow it, page numbers too (/thread/my-title/page-2). Rename forum, thread, user… under Base words.

Unique namesWith Name only, a second thread with the same title gets its ID added.
Changed titlesThe old address redirects (301) to the new one.
Old addressesRedirect old addresses keeps your rankings when you switch.

Server rules

ServerChooseWhat happens
ApacheLet MyStudio write them to .htaccessRules between # BEGIN MyStudio / # END MyStudio; the file is backed up, a pretty address tested, and restored if the test fails
nginx or hand-editedI added the rules myselfCopy the rules shown into your server block

One rule set serves every pretty type, so switching later needs no server change; a self-test checks the chosen type. Writing .htaccess needs Write server rewrite rules (Delegation).

Pages, shop and more

Pages at /your-page, the blog at /blog, the shop at /shop/product, each collection at its own address; prefixes can be renamed. Custom routes map any address (e.g. /rules) to a forum page; only safe paths and targets are accepted.

XML sitemap

/sitemap.xml (or misc.php?action=ms_sitemap): guest-readable forums and threads, plus pages, blog posts, collection entries and products. Cached and refreshed by itself.

  1. Verify your site in Google Search Console and Bing Webmaster Tools (codes on the Search & social tab).
  2. Submit the sitemap address in both.
  3. The suggested robots.txt lists it too.

Privacy

Addresses only reveal names the visitor may see: a private forum's thread keeps its plain address for guests, and redirects only go to content the visitor can open.

Coming from another SEO plugin

Run only one. Switch the other off, pick the same address style if you can, and keep Redirect old addresses on.