Menu

Post image 1
Post image 2
1 / 2
0

Building a 100+ page local-SEO site on Cloudflare Pages with a Python generator

DEV Community: python·EditPdfree·3 days ago
#BSxmL9n2
#dev#pages#internal#local#generated#photo
Reading 0:00
15s threshold

I recently shipped a static local-business site with ~112 pages, all generated from a single Python script and deployed on Cloudflare Pages. Here's the architecture and the SEO pitfalls I had to fix. The stack Generator : one generate_site.py that renders every page from data dicts (one entry per neighborhood/product). Hosting : Cloudflare Pages, deployed via wrangler pages deploy . Clean URLs : a _redirects file maps /*.html -> /:splat 301 so URLs stay extensionless. The duplicate-content trap The first version generated dozens of near-identical neighborhood pages (~88% similarity). Google's response was brutal: "Discovered – currently not indexed" . The fix: inject genuinely unique local data per page (landmarks, transit, real street names); deterministically rotate sentence variants by slug so boilerplate differs page to page; vary section order. Similarity dropped from ~72% to ~18%. Internal linking matters more than people think Orphan pages (linked only from one hub) barely get crawled.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More