[Fix] Fixed PHP Warning: Cannot modify header information - headers already sent in some cases
[Fix] Fixed an issue of redirection not taking place in some cases
[Improvement] Better handling of complex query strings