[TYPO3-core] Making Real URL work for IIS

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Sun Jan 28 18:11:05 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.

Ok, here it is.

Masi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t3lib_div.REQUEST_URI.diff
Type: text/x-diff
Size: 2714 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070128/a742ffd2/attachment.bin 


More information about the TYPO3-team-core mailing list