Answer the question
In order to leave comments, you need to log in
Why does the redirect not work if utm is present?
Hello! Changed the url of the site pages (Wordpress - Settings - Permalinks). Without utm tags the redirect works, with them it doesn't. How can this be fixed?
The site now has redirects of the type from site.ru/blog/rubilniki/ to site.ru/rubilniki/
And in the advertising campaign there are links with old addresses and such utm tags: site.ru/blog/rubilniki/?yclid=7675632334534. Now when I click on this link, it says: page not found. If I remove utm then the redirect works.
Question: is it possible to create a rule in htaccess so that the redirect also works with utm tags? At least for utm yclid ? Thanks in advance!
Answer the question
In order to leave comments, you need to log in
So far I've decided this:
RewriteCond %{QUERY_STRING} ^yclid
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$0? [R=301,L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question