[TYPO3-core] Making Real URL work for IIS

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Fri Jan 19 16:51:21 CET 2007


Michael Stucki schrieb:
> Hi Martin,
> 
> 
>>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']) {
>>  ...
>>}
>>
>>For ISAP_rewrite you have to use _SERVER|HTTP_X_REWRITE_URL etc
> 
> 
> Without testing this, just looking at the code above:
> 
> list($v,$n) = split('|',$string);
> $retVal = $GLOBALS[$v][$n];
> 
> Does this work? I doubt it!
> 
> Basically, adding a new option for this seems fine to me. But please provide
> a patch first, then I will check to see if it works.

I was lookig for opinions first so I wrote only a draft for the code.

> PS: I believe this could also be useful on systems with strange proxy
> servers...

So you favour a patch with the configuration option?

Masi


More information about the TYPO3-team-core mailing list