Zum Inhalt springen

Realurl Pfadangabe statt Datei mit .html

Erstellt am 17. Oktober 2007 · 2 Antworten · letzte Antwort am 27. Oktober 2007

Tags: RealURL, Frage

CrocodileR ·

Hallo zusammen,

ich habe Realurl eigentlich ganz gut am Laufen. Nun hätte ich aber gerne statt der Ausgabe impressum.html das Ganze als Pfadangabe, also impressum/

Hier meine localconf:

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
'init' => array(
'enableCHashCache' => 1
),
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'no_cache' => 1,
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array(
'de' => '0',
'en' => '1',
),
'noMatch' => 'bypass',
),
),
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => true,
'index' => array(
'backend.php' => array(
'keyValues' => array (
'type' => 100,
)
),
'print' => array(
'keyValues' => array(
'type' => 98,
)
),
),
),

'fixedPostVars' => array(


                                        'mm_forum' => array(
                                                                                array(
                                                                                        'GETvar' => 'tx_mmforum_pi1[action]',
                                                                                        'valueMap' => array(
                                                                                                'thread' => 'list_topic',
                                                                                                'post' => 'list_post',
                                                                                        ),
                                                                                ),
                                                                                array(
                                                                                        'GETvar' => 'tx_mmforum_pi1[fid]',
                                                                                        'lookUpTable' => array(
                                                                                                                        'table' => 'tx_mmforum_forums' ,
                                                                                                                        'id_field' => 'uid',
                                                                                                                        'alias_field' => 'forum_name',
                                                                                                                        'addWhereClause' => ' AND NOT deleted',
                                                                                                                        'useUniqueCache' => 1,
                                                                                                                        'useUniqueCache_conf' => array(
                                                                                                                                        'strtolower' => 1,
                                                                                                                                        'spaceCharacter' => '-',
                                                                                                                        ),
                                                                                                        ),
                                                                                ),
                                                                                array(
                                                                                        'GETvar' => 'tx_mmforum_pi1[tid]',
                                                                                        'lookUpTable' => array(
                                                                                                                        'table' => 'tx_mmforum_topics' ,
                                                                                                                        'id_field' => 'uid',
                                                                                                                        'alias_field' => 'topic_title',
                                                                                                                        'addWhereClause' => ' AND NOT deleted',
                                                                                                                        'useUniqueCache' => 1,
                                                                                                                        'useUniqueCache_conf' => array(
                                                                                                                                        'strtolower' => 1,
                                                                                                                                        'spaceCharacter' => '-',
                                                                                                                        ),
                                                                                                        ),
                                                                                ),
                                                                                array(
                                                                                        'GETvar' => 'tx_mmforum_pi1[page]',


                                                                                ),
                                                                                array(
                                                                                        'GETvar' => 'tx_mmforum_pi1[user_id]',

                                                                                ),

                                        ),

                                        '6' =>'mm_forum' ,
),

'postVarSets' => array(
'_DEFAULT' => array (
                 'photobook' => array(
                     array(
                                                                                        'GETvar' => 'tx_gooffotoboek_pi1[srcdir]'
                    ),
                     array(
                         'GETvar' => 'tx_gooffotoboek_pi1[fid]'
                     ),
                     array(
                         'GETvar' => 'tx_gooffotoboek_pi1[func]',
                         'valueMap' => array(
                             'thumbnails' => 'thumb',
                         ),
                     ),
                 ),
'artikel' => array(
array(
'GETvar' => 'tx_ttnews[tt_news]',
),
array(
'GETvar' => 'tx_ttnews[backPid]',
),
),
'category' => array(
array(
'GETvar' => 'tx_ttnews[cat]',
),
),
'neste' => array(
array(
'GETvar' => 'tx_ttnews[pointer]',
),
),
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 3,
'rootpage_id' => '1'
),

Hier meine .htaccess:

RewriteEngine On
RewriteBase /
RewriteRule ^$ - [L]
RewriteRule ^/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule .* index.php

Über eure Hilfe wäre ich sehr dankbar!

Unbekannter Benutzer ·

wie kann man dann die alten urls per 301 auf die neuen redirecten umd den pagerank nicht zu verlieren?

also von:

domain.de/dir/subdir/seite.html
domain.de/dir2/seite.html

auf:

domain.de/dir/subdir/seite/
domain.de/dir2/seite/

per 301 umleiten...

wer weiss wie das geht?