[TYPO3-core] Making Real URL work for IIS
Martin Kutschker
martin.kutschker-n0spam at no5pam-blackbox.net
Tue Jan 30 21:58:20 CET 2007
Martin Kutschker schrieb:
> 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.
>
> Ok, here it is.
Commited with the name "requestURIvar".
Masi
More information about the TYPO3-team-core
mailing list