Мне необходимо для того, что бы работал yandexDirect что бы у меня корректно открывалась ссылка на сайте :
https://okna-psk.ru/?yclid=12345
У меня вот такой код в htaccess :
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} (.*)
RewriteCond %{REQUEST_URI} /$ [NC]
RewriteRule ^(.*)(/)$ $1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.(.*)$
RewriteRule ^(.*)$ http://%1/$1 [L,R=301]
## Suppress mime type detection in browsers for unknown types
<IfModule mod_headers.c>
Header always set X-Content-Type-Options "nosniff"
##
# Disable Federated Learning of Cohorts (FLoC)
# If you uncomment the below directive you have to allow this technology in the
# Global Configuration of Joomla. Read more about this in the Post-Installation
# message in the backend
##
# Header always set Permissions-Policy "interest-cohort=()"
</IfModule>
## Mod_rewrite in use.
Options +FollowSymLinks
# Rewrite --- /kategoriya/glavnaya => /
RewriteRule ^kategoriya/glavnaya$ /?&%{QUERY_STRING}
# 301 --- https://okna-psk.ru/nashi-raboti/kategoriya/glavnaya => https://okna-psk.ru/nashi-raboti
RewriteRule ^nashi\-raboti/kategoriya/glavnaya$ /nashi\-raboti? [L,R=301]
# 301 --- https://okna-psk.ru/80-all => https://okna-psk.ru/
RewriteRule ^80\-all$ /? [L,R=301]
RewriteRule ^robots.txt$ /components/com_mycityselector/robots.txt.php [QSA,L]
# 301 --- https://okna-psk.ru/kategoriya/glavnaya => https://okna-psk.ru/
RewriteRule ^kategoriya/glavnaya$ /? [L,R=301]
# 301 --- recommend?tmpl=component => /
RewriteCond %{QUERY_STRING} (^|&)tmpl\=component($|&)
RewriteRule /recommend$ /? [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.okna-psk\.ru
RedirectMatch permanent ^(.*)?start=(.*)$ https://okna-psk.ru$1
RedirectMatch permanent ^(.*)/author/349-superuser$ https://okna-psk.ru$1
AddDefaultCharset UTF-8
RedirectMatch permanent ^(.*)/component/mailto/?tmpl=(.*)$ https://okna-psk.ru$1
RewriteCond %{QUERY_STRING} ^tmpl$ [NC]
RewriteRule ^$ /? [R=301,L]
RewriteCond %{QUERY_STRING} ^link=$ [NC]
RewriteRule ^index\.php$ /? [R=301,L]
RewriteCond %{QUERY_STRING} ^Itemid=101$ [NC]
RewriteRule ^index\.php$ /? [R=301,L]
Redirect 301 ^(.*)/produkcia/produktsiya$ https://okna-psk.ru$1
Redirect 301 https://okna-psk.ru/peregorodki/kategoriya/uncategorised https://okna-psk.ru
RewriteCond %{QUERY_STRING} ^(.*)glavnaya-2$ [NC]
RewriteRule ^index\.php$ /? [R=301,L]
RewriteCond %{QUERY_STRING} ^link=(.*)$ [NC]
RewriteRule ^index\.php$ /? [R=301,L]
RewriteCond %{QUERY_STRING} ^limitstart=0$ [NC]
RewriteRule ^index\.php$ /? [R=301,L]
RewriteCond %{QUERY_STRING} ^(.*)?tmpl=component&print=1$ [NC]
RewriteRule ^index\.php$ /? [R=301,L]
Redirect 301 /component/k2/itemlist https://okna-psk.ru
RedirectMatch permanent ^(.*)/component/k2?start(.*)$ https://okna-psk.ru$1
RedirectMatch permanent ^(.*)/component/k2/(.*)$ https://okna-psk.ru$1
RedirectMatch permanent ^(.*)/component/virtuemart/(.*)$ https://okna-psk.ru$1
Redirect 301 https://okna-psk.ru/component/jmap/sitemap/html?ver=(.*)$ https://okna-psk.ru$1
Redirect 301 /component/k2/kategoriya/productia https://okna-psk.ru
Redirect 301 /78-uncategorised https://okna-psk.ru
Redirect 301 /kontakty/itemlist/category/8-glavnaya.html https://okna-psk.ru/
# 301 --- https://okna-psk.ru/nashi-raboti/author/349-pizzadox => /
RewriteRule ^nashi\-raboti/author/349\-pizzadox$ /? [L,R=301]
RewriteCond %{REQUEST_URI} ^/com-convertforms.*
RewriteRule . - [R=404,L,NC]
RewriteCond %{REQUEST_URI} ^/com-swjprojects.*
RewriteRule . - [R=404,L,NC]
RewriteCond %{REQUEST_URI} ^/dveri/tamburnye/root.*
RewriteRule . - [R=404,L,NC]
# 301 --- https://okna-psk.ru/component/virtuemart/pagination/?tmpl=component&print=1 => https://okna-psk.ru
RewriteCond %{QUERY_STRING} (^|&)tmpl\=component($|&)
RewriteCond %{QUERY_STRING} (^|&)print\=1($|&)
RewriteRule ^component/virtuemart/pagination/$ /? [L,R=301]
# 301 --- https://okna-psk.ru/?tmpl=component&print=1 => https://okna-psk.ru
RewriteCond %{QUERY_STRING} (^|&)tmpl\=component($|&)
RewriteCond %{QUERY_STRING} (^|&)print\=1($|&)
RewriteRule ^$ /? [L,R=301]
# 301 --- https://okna-psk.ru/?Itemid=101 => https://okna-psk.ru/
RewriteCond %{QUERY_STRING} (^|&)Itemid\=101($|&)
RewriteRule ^$ /? [L,R=301]
# 301 --- https://okna-psk.ru/peregorodki/glavnaya-2 => https://okna-psk.ru/
RewriteRule ^peregorodki/glavnaya\-2$ /? [L,R=301]
# 301 --- https://okna-psk.ru/peregorodki/glavnaya-2 => https://okna-psk.ru/
Redirect permanent https://okna-psk.ru/component/users/?view=reset&Itemid=101 https://okna-psk.ru
RewriteCond %{QUERY_STRING} (^|&)view\=reset($|&)
RewriteCond %{QUERY_STRING} (^|&)Itemid\=(.*)($|&)
RewriteRule ^component/users/$ /? [L,R=301]
# 301 --- https://okna-psk.ru/component/mailto/?tmpl=component&template=protostar&link= => https://okna-psk.ru/
RewriteCond %{QUERY_STRING} (^|&)tmpl\=component($|&)
RewriteCond %{QUERY_STRING} (^|&)template\=protostar($|&)
RewriteCond %{QUERY_STRING} (^|&)link\=(.*)($|&)
RewriteRule ^component/mailto/$ /? [L,R=301]
# 301 --- https://okna-psk.ru/component/k2 => https://okna-psk.ru/
RewriteRule ^component/k2$ /? [L,R=301]
# 301 Redirect Old File
Redirect 301 /peregorodki/ofisnaya-peregorodka-3000x2800 https://okna-psk.ru/peregorodki/
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# 301 --- https://okna-psk.ru/peregorodki/loft/peregorodka-s-dveryu-1800x2500 => https://okna-psk.ru/peregorodki/loft/loft-peregorodka-s-dveryu-1800x2500
RewriteRule ^peregorodki/loft/peregorodka\-s\-dveryu\-1800x2500$ /peregorodki/loft/loft\-peregorodka\-s\-dveryu\-1800x2500? [L,R=301]
# 301 --- https://okna-psk.ru/peregorodki/plastikovye-peregorodki-pvh/stacionarnye/plastikovaya-peregorodka-1700x2500 => https://okna-psk.ru/peregorodki/plastikovye-peregorodki-pvh/plastikovaya-peregorodka-1700x2500
RewriteRule ^peregorodki/plastikovye\-peregorodki\-pvh/stacionarnye/plastikovaya\-peregorodka\-1700x2500$ /peregorodki/plastikovye\-peregorodki\-pvh/plastikovaya\-peregorodka\-1700x2500? [L,R=301]
# 301 --- https://okna-psk.ru/vhodnye-dveri/testaa/vkhodnaya-gruppa-2600x2500-2 => https://okna-psk.ru/
RewriteRule ^vhodnye\-dveri/testaa/vkhodnaya\-gruppa\-2600x2500\-2$ /? [L,R=301]
# 301 --- https://okna-psk.ru/kontakty/kategoriya/glavnaya => https://okna-psk.ru/
RewriteRule ^kontakty/kategoriya/glavnaya$ /? [L,R=301]
# 301 --- https://okna-psk.ru/peregorodki/loft/peregorodka-2600x2600 => https://okna-psk.ru
RewriteRule ^peregorodki/loft/peregorodka\-2600x2600$ /? [L,R=301]
# 301 --- https://okna-psk.ru/vhodnye-dveri/testaa/vkhodnaya-gruppa-3400x2600-2 => https://okna-psk.ru
RewriteRule ^vhodnye\-dveri/testaa/vkhodnaya\-gruppa\-3400x2600\-2$ /? [L,R=301]
Говорит много редиректов, подскажите что надо подправить ?