PHP¶
Real URL is configured in depth by PHP.
typo3conf/realurl_conf.php¶
If file doesn’t exist, create it. Copy on of the both the snippets from below into your file. Adapt the domains and page uids to your needs.
EXT:browser¶
A ready-to-use setup, if you render the frontend with the extension Browser:
<?php
$rootPids = array(
// '[domainName]' => [pageUid], <- Sample for the syntax
'my-domain.com' => 1, // Sample for one domain
'meine-domein.de' => 312, // Sample for another domain
);
// Configuration in general
include_once 'ext/org/Resources/Private/Includes/EXTCONF/Realurl/browser/10_DEFAULT.php';
// Configuration for the Organiser (here: German)
include_once 'ext/org/Resources/Private/Includes/EXTCONF/Realurl/browser/20_DEFAULT/De/postVarSets.php';
// Configuration of other extensions
// ...
// Enable the configuration for your domains
include_once 'ext/org/Resources/Private/Includes/EXTCONF/Realurl/browser/30_domains.php';
EXT:xblog¶
A ready-to-use setup, if you render the frontend with the extension xBlog:
<?php
$rootPids = array(
// '[domainName]' => [pageUid], <- Sample for the syntax
'my-domain.com' => 1, // Sample for one domain
'meine-domein.de' => 312, // Sample for another domain
);
// Configuration in general
include_once 'ext/org/Resources/Private/Includes/EXTCONF/Realurl/xblog/10_DEFAULT.php';
// Configuration for the Organiser (here: German)
include_once 'ext/org/Resources/Private/Includes/EXTCONF/Realurl/xblog/20_DEFAULT/De/postVarSets.php';
// Configuration of other extensions
// ...
// Enable the configuration for your domains
include_once 'ext/org/Resources/Private/Includes/EXTCONF/Realurl/xblog/30_domains.php';
Check it!¶
First flush your chash.
Modul > System > Configuration: $GLOBALS[‘TYPO3_CONF_VARS’] (Global Configuration)
- EXTCONF > realurl
There must be an array like
- my-domain.com
- meine-domein.de
- _DEFAULT