Been performing on a answer to take out odd query strings from internet pages soon after research engines retain including them at random. I have a solution that semi works, but I would ideally like to see it distinct them all. Appropriate now the code I have is this:
​
“`
RewriteEngine On
RewriteRule .* – [E=HTTP_AUTHORIZATION:%HTTP:Authorization]
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %Ask for_FILENAME !-f
RewriteCond %Ask for_FILENAME !-d
RewriteRule . /index.php [L]
​
RewriteEngine on
RewriteCond %Query_STRING ^(.*)&?kind=[^&]+&?(.*)$ [NC]
RewriteRule ^/?(.*)$ /$1?%1%2 [R=301,L]
RewriteEngine on
RewriteCond %Query_STRING ^(.*)&?get=[^&]+&?(.*)$ [NC]
RewriteRule ^/?(.*)$ /$1?%1%2 [R=301,L]
​
RewriteEngine on
RewriteCond %Query_STRING ^(.*)&?m=[^&]+&?(.*)$ [NC]
RewriteRule ^/?(.*)$ /$1?%1%2 [R=301,L]
RewriteEngine on
RewriteCond %Query_STRING ^(.*)&itemid[^&]+&?(.*)$ [NC]
RewriteRule ^/?(.*)$ /$1?%1%2 [R=301,L]
​
RewriteEngine on
RewriteCond %Query_STRING ^(.*)&[^&]+&?(.*)$ [NC]
RewriteRule ^/?(.*)$ /$1?%1%2 [R=301,L]
“`
I am quite open up to suggestion to clean points up and make a significantly a lot more optimized alternative.
​
​
many thanks in progress!