Be sure to have REQUEST_URI before trying redirection