Project

General

Profile

Actions

Feature #16318

closed

Patch: new option TSFE.jumpUrl_prefer301 = 1

Added by Digital District almost 18 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
Start date:
2006-07-04
Due date:
% Done:

0%

Estimated time:
PHP Version:
4.3
Tags:
Complexity:
Sprint Focus:

Description

TSCONFIG:

Property:
jumpUrl_prefer301

Data type:
Boolean

Description:
If you want to redirect to a page using "external Url", by default a 302 (Moved temporarily) is used. If you want to use a 301 (Moved permanently), use this option.


(Patch for T3 v4 attached: class.tslib_fe.php)

Function jumpUrl(), line 2197:
} else {
$TSConf = $this->getPagesTSconfig();
if ($TSConf['TSFE.']['jumpUrl_transferSession']) {
$uParts = parse_url($this->jumpurl);
$params = '&FE_SESSION_KEY='.rawurlencode($this->fe_user->id.'-'.md5($this->fe_user->id.'/'.$this->TYPO3_CONF_VARS['SYS']['encryptionKey']));
$this->jumpurl.=($uParts['query']?'':'?').$params; // Add the session parameter ...
}

// if 301 is prefered instead of 302, send it:
if ($TSConf['TSFE.']['jumpUrl_prefer301'])
Header('HTTP/1.1 301 Moved Permanently');
Header('Location: '.$this->jumpurl);
exit;
}

(issue imported from #M3787)


Files


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #17320: Wrong http-header on Domain-Redirect. Should be 301 instead of 302ClosedJeff Segars2007-05-21

Actions
Actions

Also available in: Atom PDF