fix_path_redirect() updates

The function now handles only query parameter URLs and will change all
such to REWRITE URLs if such exist