Help Center Advanced
SEO: Language Codes As Subdirectories

SEO: Language Codes As Subdirectories

Last updated: 8 months ago
1 minute read
Steven Wise
CEO at SiteTran

ALL ARTICLES

Help Center

SEO: Language Codes As Subdirectories

If you have control over your backend so that you can create subdirectories to return static translated pages like those generated by our Static API, or if you’re generating static translated pages another way, SiteTran can keep everything in sync for an optimal SEO solution.

Add your language codes and URLs as "key": "value", pairs respectively to the object variable below.

sitetran.static_url_language_code_lookup

For example, on SiteTran’s homepage, this is what we have.

sitetran.static_url_language_code_lookup = {
    "en":"https://www.example.com/",
    "pt":"https://www.example.com/pt/",
    "de":"https://www.example.com/de/",
    "es":"https://www.example.com/es/"
}

Couldn't find what you were looking for?

In this article

Website Translation Made Easy