Prerender works with self-hosted WordPress sites and separate headless WordPress frontends through a server or CDN that routes crawler requests to Prerender’s service. Managed hosting, including WordPress.com, requires provider confirmation that the routing is supported.
| Your setup | Prerender compatibility |
| --- | ------ |
| Self-hosted traditional WordPress | Candidate when essential content is missing from returned HTML and you can configure a documented server or CDN connection. |
| Traditional WordPress already returning essential HTML | Prerender may provide no additional rendering benefit. Check representative article and category responses first. |
| Managed WordPress hosting | Requires confirmation from the hosting provider that the proposed server changes or external CDN routing are permitted. |
| WordPress.com-hosted website | Requires confirmation from WordPress.com. Cloudflare DNS access alone does not establish a working Worker connection. |
| Separate headless WordPress frontend | Assess the frontend’s HTML and the server, CDN, or proxy receiving its public page requests. |
| Headless frontend using server-side rendering or static generation | Check for a remaining rendering gap before adding Prerender. |
| Website without a configurable, permitted request-routing layer | A connection cannot be recommended until the provider identifies a supported route. |
A WordPress page may use JavaScript to load article text, headings, category links, or metadata. If that content is missing from returned HTML, machines that do not execute the required JavaScript can receive an incomplete page. This affects machine experience: what machines receive when requesting your website. WordPress’s existing HTML rendering—and a headless frontend’s server-side rendering or static generation—may already supply everything needed.
Prerender renders accessible pages and caches the resulting HTML. In a Cloudflare connection, a Worker sends eligible crawler requests to Prerender’s service and returns rendered HTML; normal visitors continue to the WordPress website through Cloudflare. Learn how Prerender renders and caches pages.
Start with a public article or category URL. Identify the server, proxy, or CDN receiving requests for that hostname, then inspect its existing HTML.
For traditional WordPress, the WordPress template documentation explains how the server processes templates and returns HTML. Check the actual response before treating JavaScript use as a rendering problem.
For headless WordPress, trace requests to the separate frontend. The WordPress REST API can supply content to another application, but configuring the WordPress backend does not necessarily change delivery of that application’s public pages.
Choose a connection according to the component you can configure:
| Connection | When it applies |
| --- | ------ |
| Cloudflare Worker | The public frontend hostname is proxied through Cloudflare, you have Worker administration access, and the frontend host permits the arrangement. |
| Apache | You can edit .htaccess and the server or virtual-host configuration, enable mod_rewrite, mod_proxy, mod_proxy_http, mod_headers, and mod_ssl, and set SSLProxyEngine on. Follow the Apache installation guide. |
| Nginx | You can edit the active configuration and test and restart the server. Use the PHP application example for traditional WordPress; assess SPA or reverse-proxy examples separately for headless frontends. Follow the Nginx installation guide. |
The dedicated WordPress guide introduces these three routes. Managed hosting still requires confirmation from the hosting provider for the particular arrangement.
If your headless frontend uses another server or CDN, check the available connections for that component and confirm the hosting requirements.
WordPress.com’s Cloudflare guidance recommends disabling proxying. Because a Worker route requires proxied traffic, confirm a supported arrangement with WordPress.com before choosing that connection.
Use this example for a traditional WordPress website with an approved Cloudflare proxy in front of its public hostname.
Before deployment, confirm:
Follow the Cloudflare installation guide:
PRERENDER_TOKEN.Cloudflare’s Worker route requirements distinguish proxied traffic from DNS-only records. Merely using Cloudflare nameservers does not put the Worker in the request path.
Review cache rules, redirects, firewall rules, bot challenges, and rate limits alongside the Worker. Check Cloudflare’s current AI crawler and agent access policies for the crawler behaviors you intend to allow. An earlier block can prevent requests from reaching the connection.
The following flow shows traditional WordPress, with no separate content API required.
Inspect BOT_AGENTS in the Worker version actually deployed to your public hostname. The reviewed upstream source includes all four matches below; an older or customized deployment may differ.
| Crawler | Match to check in BOT_AGENTS |
| --- | ------ |
| Googlebot | googlebot |
| GPTBot | gptbot |
| ClaudeBot | claudebot |
| PerplexityBot | perplexitybot |
Append any missing match as another array entry while preserving existing matches you need. Avoid broad matches such as Chrome or Mozilla, which could send normal visitors through Prerender. Follow the additional crawler configuration guide.
Preserve the X-Prerender rendering bypass and static-file exclusions. Save and redeploy changes, confirm the active version, and test each crawler separately. Recheck security and cache rules that can block or answer requests before the intended routing occurs.
Request a public article or category URL using a configured crawler user agent:
curl -i -A "Googlebot" "https://www.example.com/category/news/"Replace the example with your public URL. This sends a GET request and retrieves both response headers and the HTML body.
Check handling and content:
x-prerender-request-id and correlate the request with Prerender’s CDN Analytics.The Prerender verification guide explains the response-header and dashboard checks. A handling header alone does not establish that every required element rendered correctly.
Repeat the request with GPTBot, ClaudeBot, and PerplexityBot. Testing Googlebot alone does not establish their coverage.
Test a fresh or recached response and a subsequent cached response. After updating a WordPress article, refresh the relevant caches through your publishing workflow and confirm the changed text appears in crawler HTML. For a headless frontend, include any required frontend rebuild or revalidation.
Also test a normal visitor request and a request with X-Prerender: 1. Confirm normal delivery and use request logs to establish that rendering fetches reach the frontend without returning recursively to Prerender’s service.
A simulated user agent tests matching and delivery from your test location. Real crawler requests may encounter additional IP checks or security controls; review actual request logs where available.
Prerender support can help assess whether your WordPress setup needs additional rendering, identify a suitable connection, and verify what crawlers receive.
Self-hosted WordPress websites and separately hosted headless WordPress frontends can use Prerender when a permitted, configurable server or CDN routes eligible public-page requests to Prerender’s service. Managed WordPress hosting requires confirmation from the hosting provider. Check for missing essential HTML before adding rendering.
A WordPress site may not need Prerender when returned HTML already contains the essential article text, headings, links, and metadata. Inspect representative article and category responses, including relevant languages and crawler user agents, to identify any remaining rendering gap.
Managed WordPress hosting can use the Cloudflare connection only when the hosting provider permits the proxy arrangement and external crawler routing, the public hostname is proxied, and Worker administration access is available. An included CDN or access to DNS records does not establish those conditions.
Prerender compatibility for a WordPress.com-hosted website requires confirmation from WordPress.com of a supported request-routing arrangement. WordPress.com recommends disabling Cloudflare proxying, while the Cloudflare Worker connection requires proxied traffic.
WordPress on Apache requires access to .htaccess, server or virtual-host configuration, the required rewrite, proxy, header, and SSL modules, and SSLProxyEngine on. WordPress on Nginx requires access to the active configuration and permission to test and restart the server. Limited hosting plans require the provider to confirm and apply supported changes. On shared hosting, the shared-hosting guide explains the connection options and where provider assistance may be needed.
Headless WordPress can use the same type of connection when the separate frontend’s host and public request path support it. Configure the component receiving frontend page requests; changing only the WordPress backend may have no effect. Traditional WordPress’s Nginx PHP configuration should not be substituted for a separate frontend’s SPA or reverse-proxy configuration. For a separate frontend served by Express, follow the Node.js and Express installation guide only if that server handles public frontend page requests, rather than only API calls.