> For the complete documentation index, see [llms.txt](https://support.morozovpimnev.ru/support/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.morozovpimnev.ru/support/multilanguage/nastroika-hreflang.md). Agents can also search and read this documentation through its [MCP server](https://support.morozovpimnev.ru/support/~gitbook/mcp).

# Настройка HREFLANG

для типа \[site] \[url]

Для помощи поисковым система индексации языковых версий страницы, в главном макете сайта в блоке head разместите следующий код

{% code lineNumbers="true" fullWidth="true" %}

```php
<?php
    MultiLanguage_Page::instance()->showHrefLang();
    // Результат
    // <link rel="alternate" hreflang="ru" href="https://site.ru" />
    // <link rel="alternate" hreflang="en" href="https://site/en/" />

?>
```

{% endcode %}
