Check 19.24 · Local SEO

Avoid artificially duplicated city pages

Spot the city pages that differ only by the municipality's name, choose between enriching, merging or deleting them, then redirect them cleanly.

Priority
Critical
Difficulty
Intermediate
Estimated time
1 to 3 days
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

Artificially duplicated city pages are “trade + city” pages produced from the same text in which only the municipality's name changes. They target local queries without offering anything specific to each place. The task is to detect them, decide for each one whether to enrich, merge or delete it, then apply the redirects or deletions. The expected result: only area pages with content of their own remain, plus a single page for the other areas.

Why it matters

Google's spam policies describe this case under doorway pages: pages or domains targeting cities or regions that all funnel users to the same page, or very similar pages that are closer to search results than to a clearly defined hierarchy. Google adds a policy on content produced at scale with the primary purpose of manipulating rankings, which also targets batches of automatically generated pages.

The possible consequences range from simple non-indexing (Google keeps one page and ignores the others) to a manual action in Search Console, which can affect the whole site. Even without a penalty, these pages consume crawl time, compete with each other and disappoint visitors who find no information about their municipality.

For generative engines, interchangeable text offers no local fact to cite. The same effort is better spent on a few genuinely useful pages (see publish content specific to the areas served (opens in a new tab)).

What it improves

  • Compliance Less exposure to the policies on doorway pages and scaled content.
  • Indexing Fewer pages excluded as duplicates, crawling focused on useful pages.
  • Rankings Signals are consolidated on fewer, stronger pages. Variable effect, not guaranteed.
  • Visitor experience Each area page answers a specific question.
  • Maintenance Fewer pages to update at every change of price or service.

How to check

1. List the city pages. From the sitemap:

curl -s https://example.com/sitemap.xml | grep -o '<loc>[^<]*</loc>' | sed 's/<[^>]*>//g' | grep -i -E 'plombier-|/zones/|/villes/' > pages-villes.txt
wc -l pages-villes.txt

2. Measure their similarity. This free script downloads each page, removes the city name and compares the texts pair by pair (Python 3, no dependencies):

import re, sys, itertools, urllib.request
from difflib import SequenceMatcher

def text(url):
    html = urllib.request.urlopen(url, timeout=20).read().decode("utf-8", "ignore")
    html = re.sub(r"(?is)<(script|style|nav|header|footer).*?</\1>", " ", html)
    words = re.sub(r"<[^>]+>", " ", html).lower().split()
    return words

def city(url):
    return url.rstrip("/").split("/")[-1].replace("plombier-", "").replace("-", " ")

urls = [line.strip() for line in open(sys.argv[1]) if line.strip()]
pages = {}
for url in urls:
    name = city(url)
    pages[url] = [w for w in text(url) if w not in name.split()]

for a, b in itertools.combinations(urls, 2):
    ratio = SequenceMatcher(None, pages[a], pages[b], autojunk=False).ratio()
    if ratio > 0.8:
        print(f"{ratio:.0%}\t{a}\t{b}")
python3 similarite.py pages-villes.txt

Adapt the city() function to the shape of your URLs. Above 80% similarity after removing the city name, the pair is suspect.

3. Cross-check with tools. In Screaming Frog, enable near-duplicate detection (Configuration > Content > Duplicates), run the crawl and then the crawl analysis: the Content tab lists the pairs above the similarity threshold. In Search Console, the Page indexing report shows whether these URLs fall under “Crawled - currently not indexed” or “Duplicate without user-selected canonical”. Also check the Manual actions report.

Compliant situation: no pair of city pages above 80% similarity, no manual action.

How to implement

Step 1 — Decide for each page

Export the list to a spreadsheet with, for each URL: maximum similarity, clicks and impressions over 12 months (Search Console), external links received (Links report), area actually served or not.

Situation Decision Technical action
Area served, real activity, specific elements available Enrich Rewrite with projects, response times, local reviews
Area served, little activity or nothing specific to say Merge 301 redirect to the “service areas” page
Area not served Delete 410 or 404; 301 only if the page receives external links
Page with no traffic but with external links Merge 301 to the closest page
URL Max similarity Clicks over 12 months External links Served Decision
/plombier-reze/ 94% 120 2 Yes, 85 call-outs Enrich
/plombier-orvault/ 95% 8 0 Yes, 40 call-outs Merge into /zones-intervention/
/plombier-saint-nazaire/ 96% 3 0 No Delete (410)
/plombier-la-baule/ 96% 0 1 No 301 to /zones-intervention/

Fictional values, for Plomberie Garnier, a plumber in Nantes.

Warning: do not put noindex on dozens of city pages while leaving them online and linked everywhere. The underlying problem remains visible to visitors, and the “Our cities” menu keeps sending links to empty pages. Merge or delete.

Step 2 — Enrich the pages you keep

Apply the method in publish content specific to the areas served (opens in a new tab): at least three elements specific to the area. Rerun the script after rewriting: similarity should drop well below 80%.

Step 3 — Create the consolidation page

A /zones-intervention/ page lists every municipality served, with response times and conditions. It is the target of the redirects. Remove the old city pages from the menus, the footer and the sitemap.

Apache

Versions Apache 2.4.

In the .htaccess file at the site root or in the virtual host:

Redirect 301 /plombier-orvault/ https://example.com/zones-intervention/
Redirect 301 /plombier-vertou/ https://example.com/zones-intervention/
Redirect 301 /plombier-la-baule/ https://example.com/zones-intervention/
Redirect gone /plombier-saint-nazaire/

Redirect gone returns a 410 status code. A change to .htaccess takes effect immediately; for the virtual host, sudo apachectl configtest && sudo systemctl reload apache2 (httpd service on Red Hat and derivatives).

Nginx

Versions Nginx 1.18 and later, checked on stable version 1.30.

In the site's server block (/etc/nginx/sites-available/example.com):

location = /plombier-orvault/ { return 301 https://example.com/zones-intervention/; }
location = /plombier-vertou/ { return 301 https://example.com/zones-intervention/; }
location = /plombier-la-baule/ { return 301 https://example.com/zones-intervention/; }
location = /plombier-saint-nazaire/ { return 410; }

Then sudo nginx -t && sudo systemctl reload nginx.

Cloudflare

Versions Cloudflare dashboard, all plans, November 2026.

For a list of URLs, use Bulk Redirects, at account level: create a list, import a CSV with no header row (source URL, target URL, 301 code), then a “Bulk Redirect Rule” that enables the list. For a few URLs, one Redirect Rule per page is enough, from the rules overview. Cloudflare does not return a 410 through a redirect rule: handle deletions on the server or in the CMS.

WordPress

Versions WordPress 6.7 and later; Redirection 5.x, Rank Math 1.0, Yoast SEO Premium.

With the Redirection plugin: Tools > Redirection, add-redirect form, source URL /plombier-orvault/, target URL /zones-intervention/, type 301. For a deletion, open the advanced options (gear icon), choose the “Error (404)” action and then the 410 code. Rank Math (Rank Math SEO > Redirections) and Yoast SEO Premium offer an equivalent manager. Then move the pages concerned to the trash and clear the cache.

Shopify

Versions Shopify admin and Online Store 2.0 themes, all plans, November 2026.

Content > Menus > View URL redirects > Create URL redirect (or “Import” a CSV for a list). The menu used to be under Online Store > Navigation. A Shopify redirect only applies if the source URL no longer matches any page: delete the page first. Shopify offers no setting to return a 410; a page deleted without a redirect returns a 404.

Laravel

Versions Laravel 10 to 13.

In routes/web.php:

use Illuminate\Support\Facades\Route;

Route::permanentRedirect('/plombier-orvault', '/zones-intervention');
Route::permanentRedirect('/plombier-vertou', '/zones-intervention');
Route::permanentRedirect('/plombier-la-baule', '/zones-intervention');

Route::get('/plombier-saint-nazaire', fn () => abort(410));

If routes are cached in production, rebuild the cache: php artisan route:cache.

Next.js

Versions Next.js 15 and 16 (App Router and Pages Router).

In next.config.js:

module.exports = {
  async redirects() {
    return [
      { source: '/plombier-orvault', destination: '/zones-intervention', permanent: true },
      { source: '/plombier-vertou', destination: '/zones-intervention', permanent: true },
      { source: '/plombier-la-baule', destination: '/zones-intervention', permanent: true },
    ];
  },
};

In a project that uses next.config.ts, export the same object with export default. permanent: true produces a 308 code, which Google treats as a permanent redirect. For a deleted page with no equivalent, remove it from generateStaticParams and call notFound(): Next.js responds with a 404.

Step 4 — Check

for path in plombier-orvault plombier-saint-nazaire; do
  curl -s -o /dev/null -w "$path %{http_code} %{redirect_url}\n" "https://example.com/$path/"
done

Expected: 301 (or 308) to /zones-intervention/ for merges, 410 or 404 for deletions. Fix the internal links that still point to the old URLs (see fix links to redirects or non-canonical URLs (opens in a new tab)) and submit the updated sitemap.

Common mistakes

  • Rewriting the texts with a paraphrasing tool: the structure, the information and the lack of local facts stay the same.
  • Adding an encyclopedic paragraph about each city to bring the similarity down.
  • Redirecting all deleted pages to the homepage instead of the consolidation page. See avoid redirecting all removed pages to the homepage (opens in a new tab).
  • Leaving the “Our cities” links in the footer after the merge.
  • Deleting a page that receives external links without a redirect.
  • Creating a new batch of city pages the following year, with a different template.

Frequently asked questions

Does Google penalize city pages?

City pages are not penalized in themselves. Google targets doorway pages: pages targeting cities or regions that closely resemble each other and all lead to the same destination, with no value of their own. An area page containing real projects, response times, reviews and local information is legitimate. The same text duplicated with each municipality's name risks non-indexing or a manual action.

Should duplicated city pages be deleted or redirected?

A 301 redirect to a page listing every area served is the right choice when the city is actually served or the page receives external links. For a city you do not serve, a 410 or 404 response is more honest. Keep and enrich only the pages for which you have information specific to the area.

At what similarity rate is a city page a duplicate?

Google publishes no threshold. In practice, two pages that remain more than 80 or 90% similar once the city name is removed offer nothing distinct, and crawlers such as Screaming Frog flag them as near-duplicates. The best test remains a human one: if you cannot guess the city without reading its name, the page has no content of its own.

Is noindex enough to solve the city page problem?

Noindex removes the pages from the index, but it does not fix the underlying issue: the pages stay online, linked from the menus, and do not help visitors. For a batch of city pages with no content of their own, it is better to merge them into a single service areas page with 301 redirects, or to delete the pages for cities you do not serve.

Updated on

Topic checklist (PDF)

And now?

In the “Local SEO” topic

  1. Create or claim a Google Business Profile if eligible
  2. Get the listing verified
  3. Choose primary and secondary categories
  4. Enter the real business name
  5. Enter the address or service area
  6. Enter the phone number
  7. Enter regular and special hours
  8. Add relevant services and products
  9. Write an accurate description
  10. Add authentic photos
  11. Add website and booking links
  12. Add UTM parameters
  13. Collect authentic reviews without selective gating
  14. Respond to reviews
  15. Standardize name, address and phone number (NAP)
  16. Create one page per actual location
  17. Display contact details, directions and parking
  18. Add a map if useful
  19. Implement LocalBusiness
  20. Set up Bing Places and Apple Business Connect
  21. Check local and industry directories
  22. Build local backlinks
  23. Publish content specific to the areas served
  24. Avoid artificially duplicated city pages
  25. Track geolocated rankings
  26. Test local AI recommendations