# International SEO: hreflang for Spanish and English Sites

> How to structure a two-language website so Google shows each version to the right audience: URLs, hreflang, canonicals and common mistakes.

For a Spanish and English site to work well in search engines, each language needs its own URL, the content has to be written for its audience and the two versions must be connected with hreflang tags. That way Google understands they are equivalents and shows each person the one that fits.

## Why translating isn't enough

Word-for-word translation rarely works. Each audience searches differently, uses other expressions and has other habits. A site for Argentina speaks in local voice and thinks about that market. An English site for an international audience uses a different tone and different examples. Ideally you write each version natively and connect them.

## How to organize URLs

There are three common structures:

1. **Subfolders:** `site.com/` and `site.com/en/`. The simplest to maintain, and it concentrates authority on a single domain.
2. **Subdomains:** `en.site.com`. More technical separation, more work.
3. **Country domains:** `site.com.ar` and `site.com`. A strong geographic signal, but each domain is built and maintained separately.

For most businesses, subfolders are a good option. What matters is choosing a structure and keeping it.

Avoid relying on automatic redirects based on browser language as the only way to reach each version: search engines don't always follow them and the person loses control. Offer a visible language switcher.

## What hreflang is

Hreflang is a tag that tells Google which versions of a page exist in other languages or regions. It can go in the page's `<head>`, in the sitemap or in HTTP headers. An example in the `<head>`:

```html
<link rel="alternate" hreflang="es-AR" href="https://site.com/servicios" />
<link rel="alternate" hreflang="en" href="https://site.com/en/services" />
<link rel="alternate" hreflang="x-default" href="https://site.com/" />
```

The `x-default` value indicates which version to show when there is no clear match.

## The rules most often broken

- **Reciprocity.** If page A points to B, B must point to A. Without that, Google may ignore the tags.
- **Every page includes itself.** The list of alternates must also contain its own URL.
- **Valid codes.** Language in ISO 639-1 format and, optionally, region in ISO 3166-1. For example, `es-AR` or `en`.
- **Absolute, correct URLs.** With the full protocol and without redirects.
- **Consistency with the canonical.** Each version should have its own canonical pointing to itself, not to the other version.
- **Real correspondence.** Hreflang is for equivalent pages. Don't connect a blog post to a services page.

## Content worth adapting

- Own titles and descriptions in each language.
- Keywords researched in each market, not translated.
- Currencies, date formats, units and local examples.
- Matching contact details and hours.
- Internal links that lead to the same language version.

## Sitemap and structured data

A sitemap with the language alternates of each URL helps keep everything consistent. Structured data can also declare the language of each version. If you use AI assistants as a discovery channel, having each language clearly separated also helps them cite the right version.

## How to verify it

- Check the coverage and international targeting reports in Search Console.
- Browse the site the way a person would in each language.
- Verify by hand that each page has its pair and that they point to each other.
- Automate validation: on a site with many pages, a check at publish time prevents silent errors.

## A work order

1. Define which markets and languages you'll serve.
2. Choose the URL structure.
3. Write each version with its audience in mind.
4. Implement hreflang and canonicals with reciprocity.
5. Measure traffic by country and language and adjust.

It's work worth doing well from the start. If you'd like help, take a look at our [growth engineering](/en/services/growth-engineering) service.