Htaccess question string challenge

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:

&#x200B

“`

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]

&#x200B

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]

&#x200B

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]

&#x200B

RewriteEngine on

RewriteCond %Query_STRING ^(.*)&amp[^&]+&?(.*)$ [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.

&#x200B

&#x200B

many thanks in progress!

Leave a Reply

Your email address will not be published.