Thanks for your response, I’ve reviewed the permalink structure and can confirm that changing the permalinks will work because there will be no question marks at the start of the URLs hence it will work.
But it doesnt solve the issue of the redirection based on ? at the start of the URL for these particular websites.
However the websites have worked before, definitely a week ago they were working OK.