Please tell me how to solve the problem.

PHP does not pick up GET parameters in all embedded pages. For example: /backpack_0001.html?utm_source=yandex&utm_medium=cpc&utm_campaign=camp_1&utm_content=cont_2&utm_term=term_1

On the main everything is ok. Direct link index.php?module=product&alias=backpack_0001&utm_source=yandex&utm_medium=cpc&utm_campaign=camp_1&utm_content=cont_2&utm_term=term_1 everything is ok.

In htaccess, this processing code is: RewriteRule ^([A-Za-z0-9_-]+).html$ index.php?module=product&alias=$1 [NC,L]

It seems that additional GET parameters need to be processed, but this code does not help: RewriteRule ^([A-Za-z0-9_-]+).html?(.*)$ index.php?module=product&alias=$1&$2 [NC,L]

    1 answer 1

    Use the QSA flag in the RewriteRule redirect to add get variables from the url to the result string.

     RewriteRule ^([A-Za-z0-9_-]+).html$ index.php?module=product&alias=$1 [NC,QSA,L]