Zum Inhalt springen

RealURL

Erstellt am 1. Februar 2007 · 4 Antworten · letzte Antwort am 1. Februar 2007

Tags: Frage

TStart ·

Hallo,

ich bin über ein Problem mit RealURL gestolpert, für das ich leider bis jetzt keine Lösung gefunden habe:

ich habe das Plugin aktiviert, das System bildet auch von den IDs auf Namen ab, leider hängt es die relativen Pfadangaben immer weiter hintereinander. Dieser Fehler tritt allerdings "nur" mit Browsern != Internet Explorer auf.

Zu sehen ist es hier: www.viaspo.de. Wenn man z.B. auf "Angebot" klickt, wechselt er nach /angebot/, zeigt man anschließend wieder auf "Angebot" will er nach /angebot/angebot/ wechseln (was es natürlich nicht gibt).

Ich hoffe, ihr habt einen Tip für mich. Dankeschön!

Viele Grüße

Die Konfiguration von RealURL

<?php 
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
        'init' => array(
            'enableCHashCache' => 1,
            'appendMissingSlash' => 'ifNotFile',
            'enableUrlDecodeCache' => 1,
            'enableUrlEncodeCache' => 1,
            'respectSimulateStaticURLs' => 0,
            'postVarSet_failureMode'=>'redirect_goodUpperDir',
        ),
    'redirects_regex' => array (
    
    ),
    'preVars' => array(
                        array(
                                'GETvar' => 'no_cache',
                                'valueMap' => array(
                                    'no_cache' => 1,
                                ),
                                'noMatch' => 'bypass',
                        ),
                         array(
                             'GETvar' => 'L',
                             'valueMap' => array(
                                                'en' => '1',
                                        ),
                                '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' => 1,
        ),


      '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 and 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[swords]',
                        ),
                    ),
                ),             
            ),
 );

 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_pathcache'] = 'tx_realurl_pathcache';
 php?>
einpraegsam.​net ·

Das Problem ist, dass dein Menü ungefähr so aussieht:

<a href="/ordner">bla</a>

statt

<a href="www.test.de/ordner">bla</a>

BaseURL richtig gesetzt?
Prefix local Anchors?
TS wäre auch nicht schlecht gewesen...

TStart ·

Danke für die schnelle Antwort.

Ich denke, wenn es so

<a href="/ordner">bla</a>

aussähe wäre es noch ok. Es sieht aber leider so

<a href="ordner/">bla</a>

aus.

Baseurl ist gesetzt, im HTML steht auch

<base href="www.viaspo.de" />

.

An TS hatte ich nicht gedacht, liefere ich hiermit nach:

###############################################
###  RealURL Management
###############################################
config.simulateStaticDocuments = 0
config.baseURL = www.viaspo.de
config.tx_realurl_enable = 1