Follow this battle-tested configuration guide to maximize SEO performance while keeping your forum secure.
1. SSL/TLS Encryption: Always Use Full (Strict)
In Cloudflare Dashboard -> SSL/TLS -> Overview, set the encryption mode to Full (Strict).
- Why NOT Flexible? Flexible SSL encrypts traffic between the visitor and Cloudflare, but sends plain HTTP traffic between Cloudflare and your origin server. Because phpBB SEO enforces canonical HTTPS redirects, your server sends a 301 redirect back to HTTPS, creating an infinite
ERR_TOO_MANY_REDIRECTSloop. - Origin Certificate: Install a free Cloudflare Origin CA certificate or Let's Encrypt certificate on your web server to enable Full (Strict) mode.
Because all incoming connections route through Cloudflare edge proxies, phpBB will see Cloudflare's IP addresses unless you restore the real client IP. This is essential for session security, flood control, and moderation.
For Apache:
Enable
mod_remoteip and add the following to your Apache configuration:
Code: Select all
RemoteIPHeader CF-Connecting-IP
RemoteIPTrustedProxy 173.245.48.0/20
RemoteIPTrustedProxy 103.21.244.0/22
RemoteIPTrustedProxy 103.22.200.0/22
RemoteIPTrustedProxy 103.31.4.0/22
RemoteIPTrustedProxy 141.101.64.0/18
RemoteIPTrustedProxy 108.162.192.0/18
RemoteIPTrustedProxy 190.93.240.0/20
RemoteIPTrustedProxy 188.114.96.0/20
RemoteIPTrustedProxy 197.234.240.0/22
RemoteIPTrustedProxy 198.41.128.0/17
RemoteIPTrustedProxy 162.158.0.0/15
RemoteIPTrustedProxy 104.16.0.0/13
RemoteIPTrustedProxy 104.24.0.0/14
RemoteIPTrustedProxy 172.64.0.0/13
RemoteIPTrustedProxy 131.0.72.0/22phpBB generates dynamic HTML pages that contain CSRF tokens, session IDs, and user-specific permissions. Never cache entire HTML pages on edge CDN unless specifically configured.
Configure Cache Rules under Caching -> Cache Rules:
- Bypass Cache for Admin & Posting:
Condition:(http.request.uri.path contains "/adm/") or (http.request.uri.path contains "posting.php") or (http.request.uri.path contains "ucp.php")
Action: Bypass Cache - Aggressive Caching for Static Assets:
Condition:(http.request.uri.path contains "/assets/") or (http.request.uri.path contains "/styles/") or (http.request.uri.path contains "/ext/")
Action: Cache Everything, Edge TTL: 1 month, Browser TTL: 1 month.
Be careful with Cloudflare's Super Bot Fight Mode. Aggressive bot challenges can inadvertently return HTTP 403 or 503 challenge pages to search engine spiders like Googlebot, Bingbot, or IndexNow bots.
To ensure uninterrupted indexing, create a WAF Custom Rule under Security -> WAF -> Custom Rules:
- Rule Name: Allow Verified Search Engine Bots
- Expression:
(cf.client.bot) - Action: Skip (Skip all remaining security rules and WAF challenges)
Replace outdated, visual CAPTCHAs with Cloudflare Turnstile. Turnstile runs frictionless, privacy-preserving browser challenges that stop automated spam registration scripts without frustrating real community members.
6. Community Discussion & Setup Support
Need assistance configuring Cloudflare or diagnosing proxy headers? Join our support community:
Γ°ΕΈβΒ¬ SEO Lite Support & Configuration Forum