Answer the question
In order to leave comments, you need to log in
How to make an ajax request redirect?
There is a link in an ajax request of the form - https://example.com/ru/?wc-ajax=get_refreshed_fragments
It is
necessary that a redirect to https://example.com/en/?wc-ajax=get_refreshed_fragments
I tried to write like this, but did not help:
RewriteCond %{HTTP_HOST} ^example.com$
RewriteCond %{QUERY_STRING} wc-ajax
RewriteRule ^$ https://example.com/en/? [R=301,L]RewriteCond %{HTTP_HOST} ^example.com$
RewriteCond %{QUERY} ^wc-ajax [NC]
RewriteRule ^$ https://example.com/en/? [R=301,L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question