Menu

My Game Site Had a Shadow Copy Google Was Indexing Instead — Two Canonical Bugs That Cost Me a Month
📰

My Game Site Had a Shadow Copy Google Was Indexing Instead — Two Canonical Bugs That Cost Me a Month

DEV Community: github·Evan Zheng·about 6 hours ago
#g1SzndE2
#devtogithub#technology#devto#dev#pages
Long article (802 words) — no AI summary yet.
Reading 0:00
15s threshold

Two weeks ago I wrote about running GameHubStar , a free HTML5 game arcade, on a $10.46/year domain and nothing else: GitHub Pages for hosting, a Cloudflare Worker + D1 (SQLite) API for the game index, React/Vite on the frontend, and GameMonetize embeds for the games themselves. At that point the site had 532 games and 48 pages indexed by Google.

Today is day 49. The site has 598 games, a 636-URL sitemap, and — according to a Search Console coverage export from December 3 (data through November 27) — 172 pages indexed. That jump didn't come from writing more content. It came from finding two boring configuration bugs that had been quietly splitting my site in half.

Bug 1: http:// never redirected to https://

GitHub Pages serves your site over HTTPS, but if you put Cloudflare in front of it, the redirect from http to https is a setting you have to turn on ("Always Use HTTPS"). I hadn't.

The result: Google crawled a complete shadow copy of my site over plain http.…

Continue reading — create a free account

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