src/Request.php
protected function resolveRequestUri()
    {
        if (isset($_SERVER['HTTP_X_REWRITE_URL'])) { // IIS
            $requestUri = $_SERVER['HTTP_X_REWRITE_URL'];
        } elseif (isset($_SERVER['REQUEST_URI'])) {
            $requestUri = $_SERVER['REQUEST_URI'];
            if ($requestUri !== '' && $requestUri[0] !== '/') {
                $requestUri = preg_replace('/^(http|https):\/\/[^\/]+/i', '', $requestUri);
            }
        } elseif (isset($_SERVER['ORIG_PATH_INFO'])) { // IIS 5.0 CGI
            $requestUri = $_SERVER['ORIG_PATH_INFO'];
            if ($query = $this->getQueryString()) {
                $requestUri .= '?' . $query;
            }
        } else {
            throw new RequestException('Unable to determine the request URI.');
        }
        return $requestUri;
    }
protected function resolveRequestUri()
    {
        if (isset($_SERVER['HTTP_X_REWRITE_URL'])) { // IIS
            $requestUri = $_SERVER['HTTP_X_REWRITE_URL'];
        } elseif (isset($_SERVER['REQUEST_URI'])) {
            $requestUri = $_SERVER['REQUEST_URI'];
            if ($requestUri !== '' && $requestUri[0] !== '/') {
                $requestUri = preg_replace('/^(http|https):\/\/[^\/]+/i', '', $requestUri);
            }
        } elseif (isset($_SERVER['ORIG_PATH_INFO'])) { // IIS 5.0 CGI
            $requestUri = $_SERVER['ORIG_PATH_INFO'];
            if ($query = $this->getQueryString()) {
                $requestUri .= '?' . $query;
            }
        } else {
            throw new RequestException('Unable to determine the request URI.');
        }
        return $requestUri;
    }
protected function resolveRequestUri ( ) { if ( isset ( $ _SERVER [ 'HTTP_X_REWRITE_URL' ] ) ) { // IIS $ requestUri = $ _SERVER [ 'HTTP_X_REWRITE_URL' ] ; } elseif ( isset ( $ _SERVER [ 'REQUEST_URI' ] ) ) { $ requestUri = $ _SERVER [ 'REQUEST_URI' ] ; if ( $ requestUri !== '' && $ requestUri [ 0 ] !== '/' ) { $ requestUri = preg_replace ( '/^(http|https):\/\/[^\/]+/i' , '' , $ requestUri ) ; } } elseif ( isset ( $ _SERVER [ 'ORIG_PATH_INFO' ] ) ) { // IIS 5.0 CGI $ requestUri = $ _SERVER [ 'ORIG_PATH_INFO' ] ; if ( $ query = $ this -> getQueryString ( ) ) { $ requestUri .= '?' . $ query ; } } else { throw new RequestException ( 'Unable to determine the request URI.' ) ; } return $ requestUri ; }
Resolves the request URI portion for the currently requested URL.

This refers to the portion that is after the {@see \rock\request\Request::$hostInfo} part. It includes
the @see queryString part if any.
The implementation of this method referenced Zend_Controller_Request_Http in Zend Framework.

@return string|boolean the request URI portion for the currently requested URL.
Note that the URI returned is URL-encoded.
@throws RequestException if the request URI cannot be determined due to unusual server configuration
Resolves the request URI portion for the currently requested URL .