Processing redirects

What redirects are recognized by the Yandex robot?

The Yandex robot recognizes standard HTTP 3xx status codes (redirection).

The main types of redirects:

  • 301 — Permanent redirect.

  • 302/303/307 — Temporary redirect.

  • A redirect using Meta refresh (META HTTP-EQUIV = "REFRESH") with small delays is considered a temporary redirect.

What is the difference between in-host redirection and host-to-host redirection?

In-host redirection is redirection within the same host (FQDN). Host-to-host redirection is redirection to a page residing on a different host.

Example of an in-host redirection:

a.ru/ -> a.ru/index.html
www.a.ru/index1.html -> www.a.ru/index2.html

Example of a host-to-host redirection:

a.ru/index1.html -> www.a.ru/index2.html
a.ru/index1.html -> b.ru/index2.html

How does Yandex process in-host redirections?

If one web page (the source) redirects to another web page (the target) within the same host, the robot will index the content of the target page, but the search results will in some cases display links to the source, and in some cases, links to the target.

If permanent redirection (301) is used between internal pages of the host, the search results will display the target page.

a.ru/page1 ->301 a.ru/page2

If temporary redirection (302/303/307/Meta refresh) is used between internal pages of the host, the search results will display the shortest of the two URLs.

a.ru/33/ ->302 a.ru/index.php?id=33
b.ru/temporarypage/ ->302 b.ru/page/

The main page of the host is always displayed in the search results.

a.ru/ -> a.ru/innerpage
a.ru/innerpage -> a.ru/

I changed the structure of my site using redirections. Will the new pages appear in search results?

They will appear in search results if you set a 301 permanent redirect from the old pages to the new pages.

I used redirection 301 but I see the redirect source in the search results. Why?

The information shown in search results will be updated later, after Yandex robot indexes the redirect source.

I have set up redirection from a.ru/page pages to a.ru/page/. What redirection should I use to have a.ru/page/ pages shown in search results?

Set 301 redirects from a.ru/page to a.ru/page/.