Zum Inhalt springen

RealUrl 2 Domains und eine funktioniert

Erstellt am 20. Februar 2011 · 3 Antworten · letzte Antwort am 9. März 2011

Tags: RealURL, URLs & Routing, Frage

mindwizard ·

Hallo Forenteam ich hoffe ihr könnte mir irgendwie helfen. Ich habe bereits seit Wochen sämtliche RealUrl Konfigurationsvariaten getesten und komme auf keinen grünen Zweig.

Problem - 2 Domains innerhalb einer Typo3 Installation sollen per RealUrl umgeschrieben werden. Bei Domain 1 funktioniert alles bestens und bei Domain 2 werden die Links zwar umgeschrieben aber ich bekomme nur Error 404 wenn ich auf diese gehe!?!

Meine Konfiguration mit Domainrecord angelegt und RealUrl jeweils aktiviert.

RealUrlKonfiguration

<?php

/**
 *
 * aeUrlTool default realurl configuration
 * based on realurl-configuration of news.typo3.org
 * 	http://news.typo3.org/about/realurl-configuration/
 *
 */

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array ( 
    '_DEFAULT' => array (
        'init' => array (
            'enableCHashCache' => '1',
            'appendMissingSlash' => 'ifNotFile',
            'enableUrlDecodeCache' => '1',
            'enableUrlEncodeCache' => '1',
        ),
        'redirects' => array (
        ),
        'preVars' => array (
            '0' => array (
                'GETvar' => 'no_cache',
                'valueMap' => array (
                    'nc' => '1',
                ),
                'noMatch' => 'bypass'
            ),
            '1' => array (
                'GETvar' => 'L',
                'valueMap' => array (
                    'de' => '0',
                    'en' => '1',
                ),
                'noMatch' => 'bypass',
            ),
            '2' => array (
                'GETvar' => 'lang',
                'valueMap' => array (
                    'de' => 'de',
                    'en' => 'en',
                ),
                'noMatch' => 'bypass',
            ),
        ),
        'pagePath' => array (
            'type' => 'user',
            'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
            'spaceCharacter' => '-',
            'languageGetVar' => 'L',
            'expireDays' => '7',
            'rootpage_id' => '35',
        ),
        'fixedPostVars' => array (
        ),
        'postVarSets' => array (
            '_DEFAULT' => array (
                'archive' => array (
                    '0' => array (
                        'GETvar' => 'tx_ttnews[year]',
                    ),
                    '1' => array (
                        'GETvar' => 'tx_ttnews[month]',
                        'valueMap' => array (
                            'january' => '01',
                            'february' => '02',
                            'march' => '03',
                            'april' => '04',
                            'may' => '05',
                            'june' => '06',
                            'july' => '07',
                            'august' => '08',
                            'september' => '09',
                            'october' => '10',
                            'november' => '11',
                            'december' => '12',
                        ),
                    ),
                ),
                'browse' => array (
                    '0' => array (
                        'GETvar' => 'tx_ttnews[pointer]',
                    ),
                ),
                'select_category' => array (
                    '0' => array (
                        'GETvar' => 'tx_ttnews[cat]',
                    ),
                ),
                'article' => array (
                    '0' => array (
                        'GETvar' => 'tx_ttnews[tt_news]',
                        'lookUpTable' => array (
                            'table' => 'tt_news',
                            'id_field' => 'uid',
                            'alias_field' => 'title',
                            'addWhereClause' => ' AND NOT deleted',
                            'useUniqueCache' => '1',
                            'useUniqueCache_conf' => array (
                                'strtolower' => '1',
                                'spaceCharacter' => '-',
                            ),
                        ),
                    ),
                    '1' => array (
                        'GETvar' => 'tx_ttnews[swords]',
                    ),
                ),
            ),
        ),
        'fileName' => array (
//
// if you don't want .html-URLs set the following to "false" (e.g. 'defaultToHTMLsuffixOnPrev' => false,)
// then you get http://www.yourdomain.com/imprint/ instead of http://www.yourdomain.com/imprint.html
//
            'defaultToHTMLsuffixOnPrev' => false,
            'index' => array (
                'rss.xml' => array (
                    'keyValues' => array (
                        'type' => '100',
                    ),
                ),
                'rss091.xml' => array (
                    'keyValues' => array (
                        'type' => '101',
                    ),
                ),
                'rdf.xml' => array (
                    'keyValues' => array (
                        'type' => '102',
                    ),
                ),
                'atom.xml' => array (
                    'keyValues' => array (
                        'type' => '103',
                    ),
                ),
            ),
        ),
    ),

); 



?>

.htaccess

RewriteEngine On
RewriteBase /
RewriteRule ^(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/ - [L]
RewriteRule ^typo3$ typo3/index_re.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L]

Eintrag in der localconf nach der Einbindung der realurl konfiguration

$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domain2.de'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domain2.de']['pagePath']['rootpage_id'] = 143;

Rootpage 1 ist in der Standartkonfiguration 35 und in der localconf auf 143 welches auch die entsprechenden pageid sind.

Komme absolut nicht mehr weiter und brauche dringend eure Hilfe. Hoffe ihr wisst eine Lösung oder habt einen Tip welche Konfigurationen ich noch prüfen sollte!?!?

Mein Dank ist jetzt schon auf euer Seite...

Unbekannter Benutzer ·

Bei mir exakt das gleiche Problem
Typo3 5.4 realurl 1.10.2

Kann da nicht Jemand helfen? Im Internet findet man zwar jede Menge Lösungen, die helfen jedoch nicht weiter.

gensfleisch ·

Habt ihr schon eine Lösung gefunden?

Selbes Problem bei mir:

Typo3 4.5.2
Realurl 1.10.2
tt_news 3.0.1

$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domain2.de'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domain2.de']['pagePath']['rootpage_id'] = 143;

Für erste Domain wird der Single-Link in tt_news verschönert, bei zweiter wird ein langer Schlauch an Parametern ausgegeben.

Vielleicht hat jemand einen Tipp.

Besten Dank schonmal.

Unbekannter Benutzer ·

Bei mir hat sich das Problem gelöst. Ich hatte in beiden Seiten jeweils eine Seite mit dem gleichen Namen, damit kam realUrl (oder TYPO3) dann scheinbar nicht klar. Nachdem ich die Seite umbenannt habe funktionierte alles einwandfrei.