A
A
Alexey selftrips.ru2018-04-18 07:03:18
Search Engine Optimization
Alexey selftrips.ru, 2018-04-18 07:03:18

Double redirect?

I set a redirect in htaccess
RedirectMatch 301 ([0-9][0-9][0-9][0-9][0-9]) selftrips.ru/?p=$1
which translates, say,
selftrips.ru/2015 /07/27/21219
to
selftrips.ru/?p=21219
Further, according to the settings of permalinks, the waterpress transfers to
selftrips.ru/strany-i-mesta/aziya/turciya/sivas-ka...
after checking the server response via https ://webmaster.yandex.ru/tools/server-response/
Yandex sees 301 redirects and page selftrips.ru/?p=21219
1. Why does it see an “intermediate redirect”?
2. Do I need to fix this (so that end pages, and not intermediate ones, get into the indexing)?
3. If it is necessary to correct, then how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2018-04-18
@shambler81

RewriteRule ^[0-9]{4}/[0-9][0-9]/[0-9][0-9]/([0-9]{1,})$ http://site.ru\?p=$1 [L,R=301]

one or more times [0-9]{1,}
The first parenthesis is $1(......)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question