Proper handling of rewritten URLs to use the REDIRECT_URL server variable.