Issue Bug Closed

#63025Not possible to deliver frontent requests from dedicated web folder

Helmut Hummel 11/17/14, 14:17 updated 10/02/18, 11:49

Description

With a specially prepared index.php and using some page renderer hooks it is in general possible
to deliver frontend requests from a dedicated web folder.

However there are a few (hard coded) issues in TYPO3 which makes this impossible.

Fix these issues to enable this (secure) setup.

example index.php (for TYPO3 6.2) to be placed in a “Web/” folder:

require __DIR__ . '/../typo3/sysext/core/Classes/Core/Bootstrap.php';
\TYPO3\CMS\Core\Core\Bootstrap::getInstance()
    ->baseSetup('Web/')
    ->redirectToInstallerIfEssentialConfigurationDoesNotExist();
define('TYPO3_PATH_WEB', __DIR__ . '/');
require(PATH_tslib . 'index_ts.php');

Reviews 5