[TYPO3-core] Making Real URL work for IIS

Dmitry Dulepov dmitry at typo3.org
Thu Jan 4 16:12:31 CET 2007


Hi!

Martin Kutschker wrote:
> For IIS there exist several mod_rewrite equivalents. I have tested two 
> of them: ISAPI_rewrite (free "lite" version) [1] and mod_rewrite (GPL) [2].
> 
> Both have one in common: They change REQUEST_URI, so Real URL breaks. 
> But there is a solution to it.

<skip>

> So to make use of these I suggest, we add a configuration setting from 
> which global variable REQUEST_URI is to retrieve:
> 
> case 'REQUEST_URI':
>  if ($GLOBALS['TYPO3_CONF_VAR']['SYS']['requestURI']) {
>   list($v,$n) = split('|',$GLOBALS['TYPO3_CONF_VAR']['SYS']['requestURI']);
>   $retVal = $GLOBALS[$v][$n];
>  } elseif (!$_SERVER['REQUEST_URI']) {
>  ...
> }

Why we simply cannot check for HTTP_X_REWRITE_URL first and then for 
REQUEST_URI? This is less flexible but avoids extra settings and shorter...

-- 
Dmitry Dulepov

Web: http://typo3bloke.net/
Skype: callto:liels_bugs

"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)


More information about the TYPO3-team-core mailing list