Languages and regions

International SEO and Hreflang: How to Serve the Right Language to the Right Searcher, Starting With Spanish in Texas

A roofer in Laredo does not need a German website. He may badly need a Spanish one. International SEO sounds like a problem for exporters, but most of its rules are about language, and a bilingual Texas town tests them as hard as any multinational.

October 25, 2026 · 12 min read

The short answer

International SEO is the work of showing each searcher the language or country version of a page meant for them. Put each version at its own URL, usually a subfolder such as /es/, translate and localize the content, and connect the versions with hreflang annotations that list every version, including the page itself, on every version.

On this page
  1. Language or country: settle which problem you have before touching code
  2. ccTLD, subdomain or subfolder: Google's trade-offs side by side
  3. How Google works out who a page is for, and what it ignores
  4. Hreflang, line by line, with examples that validate
  5. Six ways hreflang quietly fails
  6. Translation gets you words; localization gets you customers
  7. Spanish pages for a Texas business: the build, in order
  8. Measuring a second language, and when to hand it off

Language or country: settle which problem you have before touching code

Google splits the subject in two. A multilingual site offers content in more than one language. A multi-regional site targets users in different countries. Some sites are both. The distinction decides almost everything that follows, and most small businesses guess wrong about which one they are.

A plumbing company in El Paso with English and Spanish pages serves one country in two languages. That is a multilingual site, and it needs no country domains at all. A store in Houston that ships to Mexico, prices in pesos and quotes Mexican delivery times is multi-regional, because the offer itself changes at the border. The first needs good translation and clean annotations. The second needs separate versions of prices, policies and stock.

The market is not small. The Census Bureau's 2017 to 2021 language tables found that 22% of Americans age 5 and older spoke a language other than English at home, and about 61% of them spoke Spanish. Our San Antonio AI search page has the local figures for one Texas city.

ccTLD, subdomain or subfolder: Google's trade-offs side by side

Google's guide to managing multi-regional and multilingual sites lays out four ways to give each version its own address. It does not crown a winner. It lists costs, and the costs are what a business should weigh.

URL structures for language and country versions, per Google Search Central (as of October 2026)
StructureExampleWhat Google says worksWhat it costs you
Country domain (ccTLD)example.mxA strong signal to users and search engines; server location does not matterPrice, availability, local registration rules, more infrastructure, and one country per domain
Subdomaines.example.comEasy to set up; each version can live on a different serverVisitors cannot tell from the URL whether es means a language or a country
Subfolderexample.com/es/Easy to set up and low maintenance on one hostOne server location, and versions are harder to separate later
URL parameterexample.com?lang=esGoogle does not recommend itHard to segment, and the target audience is unclear

For a US business adding Spanish, a subfolder is our default, and it is a practice, not a Google rule. One domain means one Search Console property, one set of links and reviews pointing at it, and one site to maintain. A ccTLD earns its cost only when a business truly operates in another country. Google also treats some vanity country endings, such as .tv and .me, as ordinary generic domains, so a clever domain does not make you local anywhere.

Changing structure later is a site move with every redirect that implies. If you are already on subdomains and want subfolders, plan it like a migration, with the old-to-new map our redirects guide describes, or have our website migration team build and test it.

How Google works out who a page is for, and what it ignores

Owners often assume a setting somewhere tells Google their target country. It used to exist. Search Console's International Targeting report is deprecated, and Google says country targeting was judged to have little value and is no longer supported. It keeps supporting hreflang. Everything else Google reads from the site and the web around it.

Signals Google uses

  • A country domain, which it calls a strong signal
  • hreflang annotations in the page, a header or the sitemap
  • Server location, though Google calls it not definitive because of CDNs
  • Local addresses and phone numbers, local language and currency
  • Links from local sites, and Business Profile signals where they exist

Things Google says it ignores

  • Location meta tags such as geo.position
  • The HTML lang attribute, for detecting a page's language
  • Language codes in the URL, for the same purpose
  • Its own IP lookups to adapt content: it does not use them
  • A visitor's browser language, which Googlebot does not send

Google decides a page's language from its visible text. That has a blunt consequence: a page with Spanish navigation wrapped around English paragraphs is an English page. Keep the lang attribute correct anyway, because screen readers use it to choose pronunciation, which is an accessibility job our ADA compliance work checks.

The crawler detail matters most for sites that guess a visitor's language. Google's page on locale-adaptive pages says Googlebot's default IP addresses appear to be in the USA and that it sends requests without an Accept-Language header. A site that silently swaps languages by browser setting may show Google only the English version, forever.

Hreflang, line by line, with examples that validate

Hreflang tells Google that several URLs are versions of the same page for different languages or regions, so it can show the right one. Google's localized versions documentation, updated September 2026, accepts three equivalent methods: link elements in the head, an HTTP Link header (useful for PDFs), or entries in the XML sitemap. Pick one. Google says using all three gives no extra benefit.

For a home page in English and Spanish, both pages carry the same three lines in their head: <link rel="alternate" hreflang="en" href="https://example.com/" />, then <link rel="alternate" hreflang="es" href="https://example.com/es/" />, then <link rel="alternate" hreflang="x-default" href="https://example.com/" />. The x-default line names the fallback for searchers whose language matches none of your versions.

  • Every version lists every version, including itself. The set is identical on each page.
  • Return links are mandatory. Google's words: if two pages don't both point to each other, the tags will be ignored.
  • Use full URLs with https. A relative path such as /es/ is not accepted.
  • Language comes first, as an ISO 639-1 code. A region is optional, as an ISO 3166-1 two-letter code: es-US, es-MX, en-GB.
  • A region alone is invalid. Writing mx tells Google nothing, and be means Belarusian, not Belgium.
  • Some popular codes do nothing. es-419, the code for Latin American Spanish, is not supported, and reserved codes such as UK and EU have no effect. Use en-GB, not en-UK.

Where the tags come from on common platforms

Hand-typed hreflang breaks the first time someone adds a page. Let the platform write it. Next.js generates the tags from the alternates.languages field in page metadata and can add them to a generated sitemap. Shopify says its automatic hreflang tags are on by default for every store and recommends subfolders for most. On WordPress, the multilingual plugins WPML and Polylang both say they write hreflang automatically. Whatever writes them, open the page source and count: two languages plus x-default should give three lines on each version.

Six ways hreflang quietly fails

Hreflang does not raise rankings. Google describes it as a way to point users to the most appropriate version of a page, and the documentation never calls it a ranking signal. When it breaks, nothing dramatic happens. The wrong version simply keeps showing up, which is why these mistakes survive for years.

One-way annotations

The Spanish page points to the English one, but not back. Google ignores the pair. This is the most common fault Google lists.

Made-up codes

en-UK, es-LA, sp, mx. They look plausible, validate nowhere and are thrown away.

Pointing at the wrong URL

An hreflang target that redirects, returns a 404 or carries a noindex is a vote for a page Google will not show. Point only at live, indexable URLs; our canonical tags guide explains why each version should name itself as canonical.

Canonicals that cross languages

Every Spanish page canonical to its English twin tells Google the Spanish pages are copies. Each language version keeps its own self-referencing canonical.

Automatic redirects by IP or browser

Google advises against them because users and crawlers may never see the other versions. Offer a visible language link instead and let people choose.

Tags only in rendered JavaScript

If the tags appear only after scripts run, you are trusting rendering to find them. Put them in the server HTML or the sitemap; our JavaScript SEO guide covers the risk.

Duplicate content worries are mostly misplaced here. Google says localized versions are only considered duplicates if the main content stays untranslated. A US page and a UK page in near-identical English are the exception: annotate them with hreflang and pick a preferred version as Google advises.

Translation gets you words; localization gets you customers

A translated page says the same thing in another language. A localized page says what a customer in that market needs to hear: the words people really search, prices in the right currency, a phone line someone answers in that language, forms that accept the names and addresses people have. Most bilingual sites stop at the first and wonder why the second never calls.

  • Research the searches in the language itself. Translating your English keywords gives you dictionary Spanish, which may not be how people search for the service. Google Keyword Planner lets you set the language and location for ideas.
  • Keep one language per page. Google warns against side-by-side translations and against translating only the menus while the content stays in one language.
  • Edit machine translation with a fluent human. Google's spam policies list automated transformations such as translating among the techniques behind scaled content abuse. Your own pages, carefully edited, are not the target. Thousands of unedited pages could look like it.
  • Translate the trust, not just the copy. Reviews, guarantees, licensing and the about page persuade in any language. A Spanish service page that links to English-only proof loses the reader at the moment of decision.
  • Staff the promise. If the page says se habla español, the person who answers the phone must.

AI tools have made a first draft cheap, and our guide to AI for writing covers how to use them without embarrassment. Fluency is still the expensive part, and the part customers notice.

Spanish pages for a Texas business: the build, in order

Here is the sequence we would follow for a hypothetical HVAC company in San Antonio adding Spanish. It is practice built on Google's rules, sized for a site of a few dozen pages.

  1. 1

    Choose the pages that sell

    Start with the home page, the main service pages, the contact page and the service area pages. A Spanish blog can wait. Ten complete pages beat a hundred half-translated ones.

  2. 2

    Put them in a subfolder

    Mirror the English structure under /es/, with Spanish slugs if you like. Keep one Search Console property and watch the /es/ folder with a page filter.

  3. 3

    Write and edit the copy in Spanish

    Translate from the English, then have a fluent speaker who knows the trade rewrite it for how local customers talk. Check every price, phone number and form label.

  4. 4

    Add hreflang and canonicals

    Each pair gets en, es and x-default annotations, and each page names itself as canonical. Add both versions to the XML sitemap, as our XML sitemaps guide describes.

  5. 5

    Add a visible language switch

    A link at the top of every page to the matching page in the other language, not to the other home page. No automatic redirects.

  6. 6

    Check what Google stored

    Run a Spanish URL through URL Inspection in Google Search Console and confirm the selected canonical is the Spanish page itself, not its English twin.

Your Google Business Profile and listings matter as much as the site for local searches; the map pack guide covers them. Spanish questions to AI assistants are a related case, covered on our San Antonio GEO page and checkable with the free AI visibility check.

Measuring a second language, and when to hand it off

Give the new pages three months before judging them. In Search Console, filter Performance by pages containing /es/ and watch impressions first, clicks second. In GA4, record calls and forms from the Spanish pages as their own key events so the language that brings work is visible. Our SEO KPIs guide shows how to fold those numbers into a one-page monthly report.

Hreflang decides which version Google shows. Only the page decides whether anyone calls.

Most of this is within reach of an owner with a fluent colleague and a free afternoon a week, especially on a platform that writes the tags. Hire help when the site has hundreds of pages, when country versions with their own prices are involved, or when a restructure means redirects. The free site audit flags common technical faults, and the technical SEO checklist and the rest of the SEO guide cover the ground around this page.

On sites DataCram builds, the Athena CMS agent Harmonia drafts Spanish versions for a person to approve. On any site, Spanish pages can sit inside our SEO programs, which start at $625 a month, with most local businesses between $625 and $2,250, per the SEO pricing page.

Questions owners ask about SEO

Hreflang is an annotation that tells Google which URLs are language or regional versions of the same page, so it can show each searcher the right one. You add it as link elements in the page head, an HTTP header or sitemap entries. Every version must list all versions, itself included, with full URLs, or Google ignores the set.

Google does not describe it as a ranking signal. Its documentation says hreflang helps Google point users to the most appropriate version of a page. The effect is that your Spanish page appears for Spanish searchers instead of your English one. Ranking still depends on the quality and relevance of each version.

Google lists pros and cons for each and does not pick a winner. Subfolders, such as example.com/es/, are easy to set up and maintain on one host. Subdomains suit separate servers. For a US business adding a language, we recommend a subfolder as a matter of practice: one property to manage and one domain earning links and reviews.

Use es for Spanish speakers anywhere, or es-US if you have other Spanish versions for other countries and want to target US searchers specifically. Google requires an ISO 639-1 language code with an optional ISO 3166-1 region. It does not support es-419, the Latin American Spanish code, and a region code alone is invalid.

You can use machine translation for a first draft, but have a fluent person edit every page. Google's spam policies list automated translating among the transformations used for scaled content abuse, and unedited output misses how customers really search. Localized prices, phone support and reviews matter as much as the words.

No. Google treats a country domain as a strong signal, but it also reads hreflang, local addresses, currency and links from local sites. A subfolder with hreflang can serve another country. A ccTLD makes sense when you genuinely operate there and can afford a separate domain, its rules and its upkeep.

You cannot anymore. Google deprecated the International Targeting report and says country targeting is no longer supported. Use hreflang for language and regional versions, show local addresses, phone numbers and currency on country pages, and earn links from sites in that market.

Keep reading

Free · No obligation

Reach your Spanish-speaking customers properly

Tell us which languages or countries you serve and how the site is built. We will check your structure, hreflang and translated pages, and reply with what to fix and what a proper build would take.

Which of these sounds like you? (pick any)

Rather talk now? Call (210) 346-0848.

CallGet a quote