[TYPO3-core] RFC: Bug #3787: Patch: new option TSFE.jumpURL_HTTPStatusCode = 30x

Oliver Klee typo3-german-02 at oliverklee.de
Mon Jul 21 12:38:09 CEST 2008


Hi Stefan,

> +					switch (intval($TSConf['TSFE.']['jumpURL_HTTPStatusCode'])){
> +						case 301:
> +							header('HTTP/1.1 301 Moved Permanently');

Can't we use something like 'Status: 301 Moved Permanently' to avoid the 
HTTP 1.0/1.1 problem?

> +						case 307:
> +							header('HTTP/1.1 307 Temporary Redirect');
> +							break;
> +					}


Please add a default case to make it clear that it is intentional that 
the default case does not send out any headers.


Oliver


More information about the TYPO3-team-core mailing list