source/Core/SeoDecoder.php
public function processSeoCall($sRequest = null, $sPath = null)
    {
        // first - collect needed parameters
        if (!$sRequest) {
            if (isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI']) {
                $sRequest = $_SERVER['REQUEST_URI'];
            } else {
                // try something else
                $sRequest = $_SERVER['SCRIPT_URI'];
            }
        }

        $sPath = $sPath ? $sPath : str_replace('oxseo.php', '', $_SERVER['SCRIPT_NAME']);
        if (($sParams = $this->_getParams($sRequest, $sPath))) {
            // in case SEO url is actual
            if (is_array($aGet = $this->decodeUrl($sParams))) {
                $_GET = array_merge($aGet, $_GET);
                \OxidEsales\Eshop\Core\Registry::getLang()->resetBaseLanguage();
            } elseif (($sRedirectUrl = $this->_decodeOldUrl($sParams))) {
                // in case SEO url was changed - redirecting to new location
                \OxidEsales\Eshop\Core\Registry::getUtils()->redirect(\OxidEsales\Eshop\Core\Registry::getConfig()->getShopURL() . $sRedirectUrl, false, 301);
            } elseif (($sRedirectUrl = $this->_decodeSimpleUrl($sParams))) {
                // old type II seo urls
                \OxidEsales\Eshop\Core\Registry::getUtils()->redirect(\OxidEsales\Eshop\Core\Registry::getConfig()->getShopURL() . $sRedirectUrl, false, 301);
            } else {
                \OxidEsales\Eshop\Core\Registry::getSession()->start();
                // unrecognized url
                error_404_handler($sParams);
            }
        }
    }
public function processSeoCall($sRequest = null, $sPath = null)
    {
        // first - collect needed parameters
        if (!$sRequest) {
            if (isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI']) {
                $sRequest = $_SERVER['REQUEST_URI'];
            } else {
                // try something else
                $sRequest = $_SERVER['SCRIPT_URI'];
            }
        }

        $sPath = $sPath ? $sPath : str_replace('oxseo.php', '', $_SERVER['SCRIPT_NAME']);
        if (($sParams = $this->_getParams($sRequest, $sPath))) {
            // in case SEO url is actual
            if (is_array($aGet = $this->decodeUrl($sParams))) {
                $_GET = array_merge($aGet, $_GET);
                \OxidEsales\Eshop\Core\Registry::getLang()->resetBaseLanguage();
            } elseif (($sRedirectUrl = $this->_decodeOldUrl($sParams))) {
                // in case SEO url was changed - redirecting to new location
                \OxidEsales\Eshop\Core\Registry::getUtils()->redirect(\OxidEsales\Eshop\Core\Registry::getConfig()->getShopURL() . $sRedirectUrl, false, 301);
            } elseif (($sRedirectUrl = $this->_decodeSimpleUrl($sParams))) {
                // old type II seo urls
                \OxidEsales\Eshop\Core\Registry::getUtils()->redirect(\OxidEsales\Eshop\Core\Registry::getConfig()->getShopURL() . $sRedirectUrl, false, 301);
            } else {
                \OxidEsales\Eshop\Core\Registry::getSession()->start();
                // unrecognized url
                error_404_handler($sParams);
            }
        }
    }
public function processSeoCall ( $ sRequest = null , $ sPath = null ) { // first - collect needed parameters if ( ! $ sRequest ) { if ( isset ( $ _SERVER [ 'REQUEST_URI' ] ) && $ _SERVER [ 'REQUEST_URI' ] ) { $ sRequest = $ _SERVER [ 'REQUEST_URI' ] ; } else { // try something else $ sRequest = $ _SERVER [ 'SCRIPT_URI' ] ; } } $ sPath = $ sPath ? $ sPath : str_replace ( 'oxseo.php' , '' , $ _SERVER [ 'SCRIPT_NAME' ] ) ; if ( ( $ sParams = $ this -> _getParams ( $ sRequest , $ sPath ) ) ) { // in case SEO url is actual if ( is_array ( $ aGet = $ this -> decodeUrl ( $ sParams ) ) ) { $ _GET = array_merge ( $ aGet , $ _GET ) ; \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) -> resetBaseLanguage ( ) ; } elseif ( ( $ sRedirectUrl = $ this -> _decodeOldUrl ( $ sParams ) ) ) { // in case SEO url was changed - redirecting to new location \ OxidEsales \ Eshop \ Core \ Registry :: getUtils ( ) -> redirect ( \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getShopURL ( ) . $ sRedirectUrl , false , 301 ) ; } elseif ( ( $ sRedirectUrl = $ this -> _decodeSimpleUrl ( $ sParams ) ) ) { // old type II seo urls \ OxidEsales \ Eshop \ Core \ Registry :: getUtils ( ) -> redirect ( \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getShopURL ( ) . $ sRedirectUrl , false , 301 ) ; } else { \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> start ( ) ; // unrecognized url error_404_handler ( $ sParams ) ; } } }
processSeoCall handles Server information and passes it to decoder

@param string $sRequest request
@param string $sPath    path

@access public
processSeoCall handles Server information and passes it to decoder