PHP code example of koninklijke-collective / my-redirects
1. Go to this page and download the library: Download koninklijke-collective/my-redirects library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
koninklijke-collective / my-redirects example snippets
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['my_redirects'] = [
// Define default root page (fallback is on RealURL configured _DEFAULT rootpage ID
'defaultRootPageId' => 1,
// Define HTTP response (defaults on 302)
'defaultHeaderStatusCode' => \TYPO3\CMS\Core\Utility\HttpUtility::HTTP_STATUS_302,
];