Modern, enterprise-grade Search Engine Optimization infrastructure for phpBB.
phpBB SEO Framework (Lite Edition) is the official search engine optimization extension for phpBB 3.3.x communities. Architected for speed, clean software design, and strict standards compliance, it delivers a zero-SQL hot-path URL rewrite engine, automated metadata generation, dynamic keyset-streamed XML sitemaps, built-in migration from legacy SEO systems, and a high-performance bulk slug backfill engine.
- Official Website: https://www.phpbbseo.com/
- GitHub Repository: https://github.com/phpbb-seo/seo-framework
- Latest Release: v1.1.0
- High-Throughput Keyset Bulk Indexing: Built specifically for large boards with tens of thousands to 500,000+ topics. Uses zero-offset cursor pagination (
topic_id > :last_id ORDER BY topic_id ASC LIMIT :batch_size) to eliminate SQLOFFSETperformance degradation. - Strictly Bounded Memory: Streams batches with predictable, flat memory consumption (< 3 MB peak overhead), preventing PHP memory exhaustion on any hosting environment.
- Missing-Only Indexing Mode: Automatically detects and processes only topics lacking an indexed slug via database anti-joins.
- Multi-Row Atomic Insertions: Batched inserts executed within transactional boundaries for maximum integrity and throughput.
- Concurrency Mutex Locking: Utilizes phpBB core's database lock provider (
\phpbb\lock\db) to prevent race conditions between simultaneous background or web executions. - Deferred Sitemap Cache Invalidation: Intelligently invalidates XML sitemap caches only once upon 100% completion of the backfill run.
- Smart Notice Card: Automatically detected and displayed in the ACP XML Sitemap section whenever missing topic slugs exist.
- Stepped Progress Bar: Displays real-time percentage, processed topic counts, and status indicators without reloading the page.
- Pause & Resume: Gracefully handles network drops or server timeouts with one-click resumption from the exact last processed ID.
- In-Place Completion: Real-time counter synchronization immediately updates missing slug statistics to
0.
- Full Symfony Console support via
php bin/phpbbcli.php seo:rebuild-slugs(and aliasphpbbseo:rebuild-slugs). - New
--allflag to force rebuild all topic slugs from scratch. - Configurable
--batch-sizeparameter (1 to 1,000 topics per batch). - Real-time terminal progress indicators displaying batch IDs, remaining counts, and elapsed execution timing.
- Zero Database Queries on Hot Path: Runtime outbound link rewriting through
append_sid()operates in-memory with 0 SQL queries. - Configurable Permalinks: Flexible URL pattern templates for Forums, Topics, Member Profiles, and Usergroups with customizable tokens.
- Persistent Slug Read-Model: Authoritative slug index ensuring stable, deterministic URL resolution without altering phpBB core database tables.
- Automatic 301 Canonical Redirects: Automatically redirects legacy native URLs (
viewtopic.php?t=123,viewforum.php?f=4), altered slugs, and outdated URLs to current canonical structures. - Pre-Bootstrap Router: Dedicated standalone routing handler (
rewrite.php) intercepting inbound requests before full application initialization for blazing fast responses.
- Full Backward Compatibility: Seamlessly resolves and 301-redirects legacy Ultimate SEO URL structures across topics, forums, members, and posts.
- Universal Format Support: Handles
.html,.htm, extensionless, underscore-based, and nested directory legacy patterns. - Approach A Router Collision Guard: Pre-checks candidate legacy URLs against phpBB's Symfony route collection to prevent shadowing core routes or third-party extensions.
- Configurable Admin Toggle: Easily enabled or disabled from the ACP Permalinks settings.
- Pre-Flight Diagnostics: Inspects server rewrite capabilities, active slug counts, and system states before deactivation.
- Automated
.htaccessFallback Preview: Generates clean fallback rewrite rules and allows reviewing removal steps with automatic backup recovery. - Clean Deactivation: Automatically unlinks compiled route caches and temporary stores upon deactivation.
- Pattern-Based Templates: Define custom meta titles and descriptions for Home, Forum, Topic, and Profile pages.
- Intelligent Text Normalization: Automatically strips BBCode, smilies, nested quotes, and HTML entities to produce clean plain-text Unicode snippets.
- Canonical Link Tags: Injects authoritative
<link rel="canonical">elements to eliminate duplicate content issues.
- Sitemaps Protocol 0.9 Compliant: Fully compatible with Google Search Console, Bing Webmaster Tools, and Yandex.
- Scalable Keyset Streaming: Capable of indexing massive forum catalogues with zero offset slowdowns.
- Strict Anonymous ACL Guard: Strictly restricts sitemaps to public guest-accessible forums; private, hidden, or staff forums are never exposed.
- Human-Readable XSL Stylesheet: Interactive browser presentation (
/sitemap.xsl) transforming raw XML feeds into styled dashboards.
- Full native UTF-8 slug generation across Persian, Arabic, Cyrillic, Latin, and CJK alphabets.
- Graceful fallback transliteration for non-Latin character sets.
phpBB SEO Framework is designed with a unified, extensible architecture. The Lite Edition delivers the complete foundational SEO infrastructure, while the Pro Edition unlocks advanced search engine automation, real-time analytics, and rich data integrations.
| Feature / Capability | Lite Edition | Pro Edition |
|---|---|---|
| Zero-SQL SEO URL Hot Path | β Included | β Included |
| Persistent Slug Read-Model | β Included | β Included |
| Canonical 301 Redirections | β Included | β Included |
| Configurable Permalinks | β Included | β Included |
| Legacy USU 301 Migration Resolver | β Included | β Included |
| Safe Uninstall Suite | β Included | β Included |
| Persistent Slug Backfill Engine (CLI & ACP) | β Included | β Included |
| XML Sitemap Engine & XSL Styling | β Included | β Included |
| Dynamic Titles & Meta Engine | β Included | β Included |
| On-Page SEO Analyzer | β | β Included |
| Titles & Meta Pro (Advanced Rules) | β | β Included |
| OpenGraph & Twitter Card Metadata | β | β Included |
| JSON-LD Schema & Rich Data Generator | β | β Included |
| Google Search Console (GSC) Integration | β | β Included |
| Automated 404 Error Monitor | β | β Included |
| Dynamic 301/302 Redirect Manager | β | β Included |
| Robots.txt & Advanced Indexing Rules | β | β Included |
| IndexNow Instant Search Submission | β | β Included |
| Forum Social & OpenGraph Fallbacks | β | β Included |
Learn more about the Pro Edition at https://www.phpbbseo.com/.
- phpBB:
3.3.0β3.3.17+ - PHP:
7.4,8.0,8.1,8.2, or8.3(tested and verified on PHP 8.2 & 8.3) - Supported Web Servers:
- Apache 2.4+ (with
mod_rewriteenabled) - LiteSpeed / OpenLiteSpeed
- Nginx
- Apache 2.4+ (with
-
Download the latest release package (
phpbbseo_framework_1.1.0.zip) from the Releases page. -
Extract the archive and upload the files to your phpBB installation so the directory path is:
ext/phpbbseo/framework/ -
Configure your web server rewrite rules:
Add the following directives to your phpBB root
.htaccessfile:<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ ext/phpbbseo/framework/rewrite.php [QSA,L] </IfModule>
Add the following directive inside your server configuration block:
location / { try_files $uri $uri/ /ext/phpbbseo/framework/rewrite.php?$query_string; }
location /forum/ { try_files $uri $uri/ /forum/ext/phpbbseo/framework/rewrite.php?$query_string; }
-
Open the Administration Control Panel (ACP) and navigate to:
Customise Β» Manage Extensions -
Locate phpBB SEO Framework under Disabled Extensions and click Enable.
-
Navigate to the new SEO Framework tab in the ACP to configure your settings.
The framework includes a powerful Symfony CLI command suite for server administrators:
# Rebuild missing topic slugs (default safe mode)
php bin/phpbbcli.php seo:rebuild-slugs
# Rebuild all topic slugs from scratch
php bin/phpbbcli.php seo:rebuild-slugs --all
# Rebuild with a custom batch size (1 to 1000)
php bin/phpbbcli.php seo:rebuild-slugs --batch-size=500
# Using the alternative namespace alias
php bin/phpbbcli.php phpbbseo:rebuild-slugs --all- Official Website & Docs: https://www.phpbbseo.com/
- Knowledge Base: https://www.phpbbseo.com/knowledge
- GitHub Repository: https://github.com/phpbb-seo/seo-framework
- Issue Tracker: https://github.com/phpbb-seo/seo-framework/issues
phpBB SEO Framework is open-source software licensed under the GNU General Public License v2 (GPL-2.0-only).
Developed and maintained by the phpBB SEO Team.
Copyright Β© 2026 phpBB SEO. All rights reserved.