Zum Inhalt springen

RealURL wird nicht aktiviert

Erstellt am 7. Dezember 2010 · 2 Antworten · letzte Antwort am 9. Dezember 2010

Tags: RealURL, Frage

Schmoozer ·

Hallo Forum,

Hab mich schon lang nicht mehr gemeldet, aber jetzt bin ich echt ratlos...

Ich will auf einer Seite RealURL installieren, es funktioniert aber nur halb.

Die Links, die vom Menü erstellt werden sehen so aus: http://www.domain.de/index.php?id=xyz werden also nicht Suchmaschinenfreundlich erstellt. Gebe ich aber folgenden Link ein: http://www.domain.de/Seite/unterseite.html wird mir die richtige Seite angezeigt.

Meine Daten:
Typo3: 4.4.4
RealURL: 1.10.1

Meine .htaccess

RewriteEngine On
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php

Meine config-Abteilung im Root-Template:

config{

   no_cache = 0
   
   # Spam-Protection f?r die Email-Adressen
   spamProtectEmailAddresses = 2
   spamProtectEmailAddresses_atSubst = (at)

   intTarget = _parent
   extTarget = _blank

   doctype = xhtml_trans
   xhtml_cleaning = all
   xmlprologue = none
   htmlTag_langKey = de
   metaCharset = utf-8
   

   index_enable = 1

   # Spracheinstellungen
   linkVars = L
   sys_language_mode = content_fallback
   sys_language_overlay = hideNonTranslated
   
  # realurl
   prefixLocalAnchors = all
   simulateStaticDocuments = 0
   tx_realurl_enable = 1
  
   baseURL = http://www.domain.de/
}

Meine Localconf.php (ausschnitt mit realURL)

$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
    '_DEFAULT' => array(
        'init' => array(
            'enableCHashCache' => 1,
            'appendMissingSlash' => 'ifNotFile',
            'enableUrlDecodeCache' => 1,
            'enableUrlEncodeCache' => 1,
            'postVarSet_failureMode' => '',
        ),
        'redirects' => array(),
        'preVars' => array(
            array(
                'GETvar' => 'L',
                'valueMap' => array(
                      'de' => '0',
                      'en' => '1',
                ),
                'defaultValue' => 'de',
                'noMatch' => 'bypass',
            ),
            array(
                'GETvar' => 'no_cache',
                    'valueMap' => array(
                        'nc' => 1,
                    ),
                    'noMatch' => 'bypass',
            ),
        ),
        'pagePath' => array(
                'type' => 'user',
                'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
                'firstHitPathCache' => 1,
                'spaceCharacter' => '-',
                'languageGetVar' => 'L',
                'expireDays' => 7,
                'rootpage_id' => '109',
        ),
        'fixedPostVars' => array(),
        'postVarSets' => array(
                '_DEFAULT' => array(
                    // news archive parameters
                    'archive' => array(
                        array(
                            'GETvar' => 'tx_ttnews[year]' ,
                        ),
                        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',
                            )
                        ),
                    ),
                    // news pagebrowser
                    'browse' => array(
                        array(
                            'GETvar' => 'tx_ttnews[pointer]',
                        ),
                    ),
                    // news categories
                    'select_category' => array (
                        array(
                            'GETvar' => 'tx_ttnews[cat]',
                        ),
                    ),
                    // news articles anMd searchwords
                    'article' => array(
                        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' => '-',
                                ),
                            ),
                        ),
                        array(
                            'GETvar' => 'tx_ttnews[backPid]',
                        ),
                        array(
                            'GETvar' => 'tx_ttnews[swords]',
                        ),
                    ),
            ),
        ),
        // configure filenames for different pagetypes
        'fileName' => array(
            'defaultToHTMLsuffixOnPrev' => 1,
            'index' => array(
                'print.html' => array(
                    'keyValues' => array(
                        'print' => 1,
                    ),
                ),
                '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,
                    ),
                ),
                 'sitemap.xml' => array(
           'keyValues' => array(
            'type' => 200,
           ),
        ),
            ),
        ),
    ),
);

Vielleicht kann mir ja jemand von euch weiterhelfen.

Vielen Dank schonmal,
Schmoozer

Schmoozer ·

Noch ein Zusatz:
Wenn ich im TypoScript Object Browser schaue, wird im Config bereich folgendes angezeigt:

[tx_realurl_enable] = 0

Wenn ich dieses dann auf 1 ändere bekomme ich zwar die Meldung:

Value updated
config.tx_realurl_enable = 1

Es bleibt aber im Object Browser immer noch auf 0...

Außerdem wird über dem Object-Browser folgende Fehlermeldung angezeigt:

Errors and warnings
2: Line 4470: Object Name String, ")" contains invalid character ")". Must be alphanumeric or one of: "_-."
1: Line 4479: The script is short of 1 end brace(s)

Wo bekomme ich heraus, wo die beiden Zeilen sind?