use TYPO3\CMS\Core\Utility\GeneralUtility; $url = 'https://example.com/newpage'; GeneralUtility::locationHeaderUrl($url);In this example, we are using the `locationHeaderUrl` function to redirect the user to the new page located at `https://example.com/newpage`. The function takes a single argument which is the URL of the page to which the user should be redirected. This function is particularly useful for generating location header URLs in TYPO3 extensions or other custom PHP scripts that need to redirect the user to a new page. The `locationHeaderUrl` function is part of the TYPO3 CMS core utility library and can be found in the `GeneralUtility` class.