Use REQUEST_URI instead of REDIRECT_URL. #1131

REQUEST_URI is set in most servers, REDIRECT_URL is not. This commit fixes PHP warnings for nginx/php-fpm.

Can somebody with Apache/mod-php confirm that REQUEST_URI works?