Answer the question
In order to leave comments, you need to log in
How to speed up a slow redirect (using WP)?
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
in
selftrips.ru/?p=21219
it happens very fast in 100ms ( https://tools.pingdom.com/#!/L0L1u/http://selftrip...
then WP itself makes a redirect to the URL set for this page according to the rules "permalinks"
selftrips.ru/strany-i-mesta/aziya/turciya/sivas-ka...
so this redirect is done in 2 seconds, i.e. 20 times slower
1 Why is it so
2. Do I need to deal with it
3. If so, how
?
from the "canonical" form of the URL selftrips.ru/?p=21219 to the given one?
As I understand it, it is processed 20 times faster
Answer the question
In order to leave comments, you need to log in
It is executed automatically by means of WP. Another thing is that I myself "provoke" creating an intermediate selftrips.ru/?p=21219 , because I can't figure out how to automatically create a 301 redirect
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question