K
K
knsmrt5k2019-11-21 12:16:44
htaccess
knsmrt5k, 2019-11-21 12:16:44

How to remove the 404 error output if the link contains UTM tags with curly braces {}?

Hello! Faced such a problem. I have a site on WP - let's say site.ru
When adding UTM tags with parameters in curly braces, for example https://site.ru/?utm_medium=cpc&utm_source=yandex&... = { campaign_id }&utm_content= { ad_id }&utm_term= { keyword }
- the site gives an error 404
If you remove the curly braces, then everything is fine.
If you try the same thing on the internal pages of the site - https://site.ru/page/?utm_medium=cpc&utm_source=ya... = { campaign_id &utm_content = { ad_id }&utm_term = { keyword }
The site simply redirects to the page https:/ /site.ru/page/ already without parameters.
On the English version of the site, the link is perceived normally -https://site.ru/en/page/?utm_medium=cpc&utm_source... { campaign_id }&utm_content= { ad_id }&utm_term= { keyword }
How do I make all links with UTM tags that include curly braces {} were processed normally and the site did not give a 404 error ?
PS I understand that in fact, values ​​are substituted into curly brackets, and they disappear, but the point is that Yandex and Google checks the page by substituting utm tags with dynamic parameters in curly brackets into it, and, seeing a 404 error, thinks that The page does not exist and does not allow ads.
site.ru/?test{} - Such links are also redirected to 404 respectively

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question