# Avoid artificially duplicated city pages

- Check 19.24 · Local SEO · Critical
- Source: https://checklist-seo-geo.com/en/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.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/local-seo/avoid-artificially-duplicated-city-pages.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## 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](https://checklist-seo-geo.com/en/local-seo/publish-content-specific-areas-served)).

## 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:

```bash
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):

```python
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}")
```

```bash
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](https://search.google.com/search-console/index) shows whether these URLs fall under “Crawled - currently not indexed” or “Duplicate without user-selected canonical”. Also check the [Manual actions report](https://search.google.com/search-console/manual-actions).

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](https://checklist-seo-geo.com/en/local-seo/publish-content-specific-areas-served): 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:

```apache
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`):

```nginx
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](https://dash.cloudflare.com/?to=/:account/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](https://dash.cloudflare.com/?to=/:account/:zone/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`:

```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`:

```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

```bash
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](https://checklist-seo-geo.com/en/internal-linking/fix-links-redirects-non-canonical-urls)) 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](https://checklist-seo-geo.com/en/http-redirects/avoid-redirecting-all-removed-pages-homepage).
- **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.

## Resources

- [Google Search Central: spam policies (doorway abuse, scaled content abuse)](https://developers.google.com/search/docs/essentials/spam-policies?hl=en)
- [Google Search Central: redirects and Google Search](https://developers.google.com/search/docs/crawling-indexing/301-redirects?hl=en)
- [Search Console Help: Manual actions report](https://support.google.com/webmasters/answer/9044175?hl=en)
- [Screaming Frog: user guide](https://www.screamingfrog.co.uk/seo-spider/user-guide/)
- [Cloudflare: Bulk Redirects](https://developers.cloudflare.com/rules/url-forwarding/bulk-redirects/)
- [Next.js: redirects](https://nextjs.org/docs/app/api-reference/config/next-config-js/redirects)
- [Shopify Help Center: URL redirects](https://help.shopify.com/en/manual/online-store/menus-and-links/url-redirect)

Next steps: [publish content specific to the areas served](https://checklist-seo-geo.com/en/local-seo/publish-content-specific-areas-served) and [eliminate artificial doorway pages](https://checklist-seo-geo.com/en/practices-avoid/eliminate-artificial-doorway-pages).
