Zum Inhalt springen

Das gute alte Realurl - Bitte helfen

Erstellt am 12. Februar 2010 · 1 Antwort · letzte Antwort am 12. Februar 2010

Tags: RealURL, Server & Hosting, Frage

yamukud ·

Habe mich jetzt mit zeitlichem Abstand viermal in das Thema eingelesen und bekomme es nicht zum laufen.

Rewrite-Modul ist aktiviert.

.htaccess:

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

realurl.conf:

<?php
$TYPO3_CONF_VARS['SC_OPTIONS'] ['t3lib/class.t3lib_tstemplate.php'] ['linkData-PostProc'] []
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS'] ['tslib/class.tslib_fe.php'] ['checkAlternativeIdMethods-PostProc'] []
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS'] ['t3lib/class.t3lib_tcemain.php'] ['clearAllCache_additionalTables'] ['tx_realurl_urldecodecache']
= 'tx_realurl_urldecodecache';
$TYPO3_CONF_VARS['SC_OPTIONS'] ['t3lib/class.t3lib_tcemain.php'] ['clearAllCache_additionalTables'] ['tx_realurl_urlencodecache']
= 'tx_realurl_urlencodecache';
$TYPO3_CONF_VARS['FE'] ['addRootLineFields'] .=
',tx_realurl_pathsegment,alias,nav_title,title';

$TYPO3_CONF_VARS['EXTCONF'] ['realurl'] ['_DEFAULT'] = array(

        'init' => array(
                'enableCHashCache' => 1,
                 'appendMissingSlash' => 'ifNotFile',
                 'enableUrlDecodeCache' => 1,
                'enableUrlEncodeHash' => 1,
                // 'postVarSet_failureMode' => 'redirect_goodUpperDir',
        ),

         'redirects' => array(
         ),
         /* 'rewrite' => array(
         ), */

        'preVars' => array(
                /*                                 array(
                        'GETvar' => 'no_cache',
                        'valueMap' => array(
                                'nc' => 1,
                        ),
                        'noMatch' => 'bypass',
                ),   */
                 /*
                array(
                        'GETvar' => 'L',
                        'valueMap' => array(
                                'de' => '0',
                                'en' => '1',
                        ),
                        'valueDefault' => 'de',
                ),
                */
        ),

         'pagePath' => array(
                'type' => 'user',
                'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
                'spaceCharacter' => '-',
                'languageGetVar' => 'L',
                // 'firstHitPathCache' => 1,
                 'expireDays' => 3,
                // ------------> hier unbedingt die id der Rootseite anpassen!!! <------------
                'rootpage_id' => '1'
        ),

         'fileName' => array (
                'defaultToHTMLsuffixOnPrev' => 1,
                'index' => array(
                        /*'index.html' => array(*/
                                'keyValues' => array (
                                        /*'type' => 1,*/
                                ),
                        /*),*/
                ),
        ),

         'fixedPostVarSets' => array(
        ),

        'postVarSets' => array(
        ),
);
?>

Template der Root-Seite (Ist manuell auf Start der Seite gesetzt)

config.simulateStaticDocuments = 0
 config.baseURL = http://localhost/test/
 config.tx_realurl_enable = 1
 config.prefixLocalAnchors = all

Sollte es etwas damit zu tun haben: Das Ganze ist eine lokale Installation (http://localhost/test/)

Vorher wurde die Extension deinstalliert und wieder installiert (Tabellen gelöscht); simulatestatic vorher deinstalliert und gelöscht.

Typo3 4.3

Und meine Struktur sieht z.B. für die Willkommensseite so aus: http://localhost/test/index.php?id=5

Die Links werden auch richtig erzeugt (http://localhost/test/vertikale-navigation/willkommen.html), aber beim Draufklicken kommt ein 404-Fehler.

Jemand eine Idee?

Vielen Dank!

yamukud ·

Kaum hat man den Fehler definiert wird er gelöst...

Hatte bei der Installation _.htaccess nicht in .htaccess umbenannt *klatsch*

Jetzt komme ich aber bei nem Link auf http://localhost/index.php/ , wo ich den Typo3 Installer habe.

Wo ist nun das Problem?