I have some problem need to be solved ! My site using WordPress with Gtranslate . So i have million link to be solved .
I want rewrite url query string by PHP WordPress , from here
https://domain/bs/page/150/?-2-февруари-2020-г
https://domain/bg/page/86/?archive_query=title&alphabet_filter
https://domain/nl/page/138/?video_index=2
https://domain/ar/page/166/?-Dlatego-jest-świetna
https://domain/ar/page/267/?video_embed=94892
https://domain/cs/page/218/?alphabet_filter=T&archive_query=latest
https://domain/sv/page/4/?-Nie-baw-się-ze-mną
https://domain/pt/page/167/?-Jeon,-czerwiec-2021
https://domain/ms/page/230/?archive_query=latest&alphabet_filter
https://domain/ar/page/120/?sid=2
https://domain/ur/page/55/?msclkid=7dc975ebc56911ec84e42d13d691de5f
https://domain/el/page/225/?-movie-for-watching-part-2
https://domain/pl/page/54/?alphabet_filter&archive_query=title
https://domain/ja/page/200/?sid=2&bsa_pro_id=2&bsa_pro_url=1
To This ( it many more query string , i can’t put it all to here , this is just few spam link )
https://domain/bs/page/150/
https://domain/bg/page/86/
https://domain/nl/page/138/
https://domain/ar/page/166/
https://domain/ar/page/267/
https://domain/cs/page/218/
https://domain/sv/page/4/
https://domain/pt/page/167/
https://domain/ms/page/230/
https://domain/ar/page/120/
https://domain/ur/page/55/
https://domain/el/page/225/
https://domain/pl/page/54/
https://domain/ja/page/200/
It mean i dont want query string show on my url , this url with query string will be indexed on google , and i dont want this , this url with query string is spam and make my index link bigger than i have .
And remember , exclude search query string from rewrite url .
https://domain/?s=abc+test
https://domain/page/2/?s=abc+test
Sorry , my english is bad .
It is difficult to explain the problem.