Search code examples
typo3url-routingtypo3-9.x

TYPO3 v9.5.0 - Error message: Requested page does not exist /robots.txt


TYPO3 v9.5.0 - Error message: Requested page does not exist /robots.txt

I have a TYPO3 9.5.0LTS and use the bootstrap package theme. It seems to be all working ... but quite often I get such error messages:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1518472189: The requested page does not exist | TYPO3\CMS\Core\Error\Http\PageNotFoundException thrown in file /is/www/typo3_src-9.5.0/typo3/sysext/frontend/Classes/Controller/ErrorController.php in line 82. Requested URL: domain/robots.txt

What causes this and how to prevent this? Or how do I create a robots.txt in v.9.5 ?


Solution

  • In TYPO3 9.5 you can add a robots.txt in your Sites module.

    Sites -> Choose your site -> Static Routes -> Create new.

    Static Route Name: select "robots.txt"
    Route Type: select "Static Text"
    Static Text: Select "robots.txt Example Content"

    Save. Should be fixed now.