Skip to content

Latest commit

 

History

History
142 lines (105 loc) · 3.98 KB

File metadata and controls

142 lines (105 loc) · 3.98 KB

Cloudflare Configuration for GSC Indexing Fixes

This document outlines the Cloudflare/DNS configuration changes needed to resolve Google Search Console indexing issues.

Current Issues

Issue Pages Root Cause
Page with redirect 71 Old subdomains redirecting
Alternate page with canonical 15 Non-www serving same content
Not found (404) 14 Deleted pages still indexed
Duplicate without canonical 12 Old subdomain content

Required Cloudflare Changes

1. Redirect Old Subdomains (Critical - 71 pages affected)

The following old subdomains are causing "Page with redirect" issues:

dockit.geekfun.club

Current: 301 redirect to geekfun.club/products/dockit/ Issue: Google sees this as redirect, not canonical

Solution A - Remove from DNS (Recommended):

  1. Go to Cloudflare Dashboard → DNS
  2. Delete the dockit CNAME/A record
  3. This will make the subdomain return 404/410
  4. Submit URL removal request in Google Search Console

Solution B - 410 Gone Response:

  1. Go to Cloudflare Dashboard → Rules → Page Rules
  2. Create rule for dockit.geekfun.club/*
  3. Set "Cache Level" to "Bypass"
  4. Add custom header: X-Robots-Tag: noindex
  5. Or return 410 Gone status

serverlessinsight.geekfun.club

Current: 200 OK (still serving content) Issue: Duplicate content, old site still live

Solution: Either:

  • Remove DNS record entirely
  • Add X-Robots-Tag: noindex header
  • Set up proper 301 redirects to new domain

seven.geekfun.club

Current: 200 OK (very old site) Issue: Very old content still indexed

Solution:

  • Remove DNS record entirely
  • Submit URL removal in Google Search Console

2. Non-www to WWW Redirect (15 pages affected)

Current: Both geekfun.club and www.geekfun.club serve same content (200 OK) Issue: Google sees duplicate content

Solution - Add Page Rule:

  1. Go to Cloudflare Dashboard → Rules → Page Rules
  2. Create new rule:
    • URL: geekfun.club/*
    • Setting: Forwarding URL (301 - Permanent Redirect)
    • Destination: https://www.geekfun.club/$1

3. Remove .html Extension Redirects

Current: /download.html → 308 → /download Issue: 308 redirect flagged as "Page with redirect"

Solution: Already configured trailingSlash: false in VitePress The _redirects file provides 301 redirects which are preferred.

4. Create URL Removal Requests in Google Search Console

After making DNS changes, submit removal requests for:

  1. dockit.geekfun.club:

    • Go to GSC → Index → Removals
    • Submit: dockit.geekfun.club/*
  2. serverlessinsight.geekfun.club:

    • Submit: serverlessinsight.geekfun.club/*
  3. seven.geekfun.club:

    • Submit: seven.geekfun.club/*

Page Rules to Create in Cloudflare

Rule 1: Non-www to WWW

URL: geekfun.club/*
Setting: Forwarding URL (301 - Permanent Redirect)
Destination: https://www.geekfun.club/$1

Rule 2: Old subdomain - dockit (Option A)

URL: dockit.geekfun.club/*
Setting: Forwarding URL (410 - Gone)

Rule 3: Old subdomain - serverlessinsight (Option A)

URL: serverlessinsight.geekfun.club/*
Setting: Forwarding URL (410 - Gone)

Rule 4: Old subdomain - seven (Option A)

URL: seven.geekfun.club/*
Setting: Forwarding URL (410 - Gone)

Expected Results

After implementing these changes:

Timeline Expected Change
1-2 weeks Redirect errors start decreasing
2-4 weeks 404s from old subdomains drop
4-8 weeks All issues resolved

Verification Steps

  1. Test redirects:

    curl -I https://geekfun.club/
    # Should return 301 to www.geekfun.club
    
    curl -I https://dockit.geekfun.club/
    # Should return 410 Gone or no response
  2. Check GSC weekly:

    • Monitor Page indexing report
    • Check for decreasing error counts
  3. Submit sitemap:

    • Ensure sitemap.xml only contains www.geekfun.club URLs
    • Submit in GSC if not already done