FIX redirection of changed URLs issue#34

Fix for issue #34
Changed uninitialized $url to $redirect.
Move http_build_query() so it appends the variables as get parameters instead of as URL segments.