An hreflang tag is a small piece of code in a page’s HTML that tells Google which language and, optionally, which country a page is written for. If your Malaysian site runs English, Bahasa Malaysia and Chinese versions of the same pages, hreflang is what stops those versions from competing against each other in search results and makes sure a Malay speaker lands on the Malay page instead of the English one. It will not push your rankings up on its own. Get it wrong, missing a return link or using an invalid code, and Google can ignore the whole set of tags and fall back to guessing which version to show.

A Simple Way to Think About It

Three Doors, One Building

🚪 No Signage

A shop has three entrances, one for each language its customers speak, but no signs above any of them. Everyone crowds through whichever door is closest, and staff spend the day redirecting people who walked in expecting the wrong counter.

🧭 Clear Signage

Three doors, three clear signs, each customer walks straight to the counter that serves them. No wrong turns, no queue confusion, no one wondering if they are in the right place.

Reciprocal hreflang tags are the signage. How to put them up correctly is below.

Who Actually Needs Hreflang on a Malaysian Site

You need hreflang if the same content exists in more than one language, or if you are targeting more than one country with region-specific pages. In practice, that covers three common setups in Malaysia:

  • A site with English and Bahasa Malaysia versions of the same pages.
  • A site that has added Chinese pages for a local audience.
  • A brand targeting both Malaysia and Singapore with separate, region-specific English pages, which overlaps with how you’d approach local SEO for each market.

If your site is single-language and single-country, skip this entirely. Hreflang solves a problem you don’t have, and adding it anyway just gives you more tags to get wrong.

What the Tag Is Actually Telling Google

An hreflang annotation names the language, and optionally the region, of a specific page, then points to the equivalent pages in other languages. You can place it in the page’s <head>, in the HTTP header, or in your XML sitemap. According to Google’s own documentation on localized versions, this is how Google decides which version of a page to serve a given searcher.

The one rule that matters more than any other: the tags must be reciprocal. If the English page points to the Malay page, the Malay page must point back to the English page, and both must also reference themselves. Miss that, and Google treats the whole annotation as unreliable and may ignore it.

Language and Region Codes for Malaysia

Stick to valid ISO 639-1 language codes, with an optional region code attached. Do not invent your own.

Audience hreflang value
English, any region en
English, Malaysia specifically en-MY
Bahasa Malaysia ms
Chinese (Simplified) zh-Hans
Fallback for everyone else x-default

How to Implement Hreflang in 4 Steps

1. Map every language version

List each page and its equivalents in every language, so you know exactly which URLs need to reference each other before you write a single tag.

2. Add reciprocal tags to every version

On each page, add hreflang links to every language version, including that page itself. Google flags missing return links as one of the most common hreflang errors, and without them the whole set can be ignored.

3. Set an x-default

Point visitors whose language you don’t specifically target to a sensible fallback, usually your main English page.

4. Test it, then keep monitoring it

Run an hreflang testing tool and check Google Search Console regularly for errors such as missing return tags or invalid codes. Confirm you’re using valid ISO 639-1 codes, ms for Malay and zh for Chinese, not shortcuts you’ve made up.

Infographic summarizing the four steps to implement hreflang tags on a multilingual Malaysian website

Example: Hreflang Tags for a Malaysian “About Us” Page

Say you run the same About Us page in English, Bahasa Malaysia and Chinese. You place the identical block below in the <head> of all three URLs. Each page references all three versions, including itself, plus an x-default fallback:

<link rel="alternate" hreflang="en-MY" href="https://example.com.my/about/" />
<link rel="alternate" hreflang="ms" href="https://example.com.my/ms/tentang/" />
<link rel="alternate" hreflang="zh-Hans" href="https://example.com.my/zh/about/" />
<link rel="alternate" hreflang="x-default" href="https://example.com.my/about/" />

Because that block is identical and reciprocal across all three URLs, Google can confidently serve the Malay page to a Bahasa searcher and the English page to an English one, with no risk of the two competing as duplicates. Add the tags to the English page only, and forget the Malay and Chinese versions, and Google treats the annotation as broken. That single omission is the most common hreflang mistake we see.

Common Mistakes That Break the Signal

Mistake Why it hurts
Non-reciprocal tags Page A links to B, but B doesn’t link back. Google ignores the pair entirely.
Invented codes Only valid ISO language and region codes work. Made-up values are silently discarded.
Mixing implementation methods Pick head tags, HTTP headers, or sitemap entries, and apply that one method consistently site-wide.
Pointing to noindex or redirected URLs Hreflang should only reference live, indexable pages.
No x-default Visitors outside your targeted languages get no clear fallback page.

The Hreflang Checklist

  • Every language version references all others, including itself (reciprocal).
  • All codes are valid (en, ms, zh-Hans, en-MY).
  • An x-default is set to a sensible fallback page.
  • One implementation method is used consistently across the site.
  • All referenced URLs are live and indexable.
  • Errors are monitored in Search Console and fixed promptly.

If you’re already paying an SEO agency in Malaysia to grow your traffic, a broken hreflang setup is worth fixing before you spend another ringgit on new content, since it can quietly undercut every language version you publish.

What does an hreflang tag do?

It tells search engines the language, and optionally the region, of a page and links it to equivalent pages in other languages. Google uses this to serve the right version to each searcher, so a Malay speaker sees the Bahasa Malaysia page rather than the English one.

Do I need hreflang for a Malaysian website?

Only if the same content exists in more than one language, or you’re targeting more than one country. English plus Bahasa Malaysia versions of the same pages is the most common case. Single-language, single-country sites don’t need it.

Does hreflang improve rankings?

Not directly. It improves targeting and user experience, and it stops your own translated pages from competing as duplicates. That protects and stabilises the rankings you already have, but it isn’t a ranking booster on its own.

What happens if hreflang is set up wrong?

Missing return tags or invalid language codes can cause Google to ignore the annotations entirely, or to show the wrong language version to the wrong visitor. Test with an hreflang tool and check Search Console regularly to catch and fix errors.

Where do hreflang tags actually go?

In the page’s head as link elements, in the HTTP header, or in your XML sitemap. Pick one method and use it consistently. On WordPress, most multilingual plugins can add and manage these tags for you automatically.

Is your multilingual site actually tagged correctly?

Get a Free Hreflang and Technical SEO Audit

Newnormz has run SEO campaigns across F&B, healthcare, ecommerce, and local services in Malaysia, backed by a performance guarantee of 70 percent of targeted keywords on Google’s first page.

Claim Your Free SEO Audit →

30 minutes, no obligation, hreflang errors included in the report.

Scroll to Top
newnormz-logo-white-new-png
website-assets-02-png
Website SEO Audit
(Worth RM1,200)!
FREE SEO Audit with AI Visibility Check
Limited to This Month Only!
Get ranked on Google: discover why your website is not ranked