Real URL

The Browser has PHP-include-scripts for Real URL.

Setup

Extension Manager

Configure Real URL:

Modul > Admin Tools > Extensions > Speaking URLs for TYPO3 (realurl)

  • Path to configuration file: typo3conf/realurl_conf.php

  • Enable automatic configuration: [ ] <- disabled

Enable Real URL

If you are using the framework TYPO3 Start Responsive! (start):

  • Constant Editor: START - CONFIG

    • Real URL: [X]

In the other case configure the setup of your root template:

config.tx_realurl_enable = 1

typo3conf/realurl_conf.php

If file doesn't exist, create it. Copy the snippet from below into your file. Adapt the domains and page uids to your needs.

<?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/browser/Resources/Private/Includes/EXTCONF/Realurl/10_DEFAULT.php';
// Configuration for the Browser (here: German)
include_once 'ext/browser/Resources/Private/Includes/EXTCONF/Realurl/20_DEFAULT/De/postVarSets.php';
// Configuration of other extensions
// ...
// Enable the configuration for your domains
include_once 'ext/browser/Resources/Private/Includes/EXTCONF/Realurl/30_domains.php';

Flush your chash.

Check it!

Modul > System > Configuration: $GLOBALS['TYPO3_CONF_VARS'] (Global Configuration)

  • EXTCONF > realurl

There must be an array like

  • my-domain.com

  • meine-domein.de

  • _DEFAULT