Zum Inhalt springen

RealUrl Einstellung für schöne links

Erstellt am 25. Oktober 2006 · 8 Antworten · letzte Antwort am 28. Oktober 2006

Tags: RealURL, URLs & Routing, Frage

trainerth ·

Hallo liebe Gemeinde,

mein Problem: (ist bestimmt schon mal dagewesen, find aber nichts)

Ich habe RealUrl 1.1.3 und Typo3 4.0 nur entstehen nicht die links so wie ich es gerne hätte sondern schreibt er mir die so:

http://www.meine-seite.de/typo3/4/

Kennt das jemand? weiß wer wie ich das richtig mache?

Mfg
Thorsten

trainerth ·

Ich vergass, niemand ist Perfekt 🙂

Also ich hätte sie gerne meine-seite.de/tritra.html

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

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php
/$TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';

//$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(
//			'en' => '1',
//			),
//		'noMatch' => 'bypass',
//		),
//	),
//
//    'fileName' => array (
//		'defaultToHTMLsuffixOnPrev' => true,
//		'index' => array(
//			'backend.php' => array(
//				'keyValues' => array (
//					'type' => 100,
//				)
//			),
//			'print' => array(
//				'keyValues' => array(
//					'type' => 98,
//				)
//			),
//		),
//	),
//	
//	'pagePath' => array(
//		'type' => 'user',
//		'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
//		'spaceCharacter' => '-',
//		'languageGetVar' => 'L',
//		'expireDays' => 3
//	),
//
//);
REALURL Configuration
config.simulateStaticDocuments_replacementChar = _
config.simulateStaticDocuments = 0
config.baseURL = http://www.meins.de/typo3/
config.tx_realurl_enable =1

Falls das alles gern gesehen ist...

Also wenn wer rat weiß.. Her damit

einpraegsam.​net ·

schmeiß mal (z.B.) das in deine localconf:

//Beginn REAL URL
$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';

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
    'init' => array(
        'enableCHashCache' => 1
    ),
    'preVars' => array(
        array(
            'GETvar' => 'no_cache',
            'valueMap' => array(
                'no_cache' => 1,
            ),
            'noMatch' => 'bypass',
        	),
    	),
    'fileName' => array (
		'defaultToHTMLsuffixOnPrev' => 1,
        'index' => array(
            //'index.html' => array(
            //    'keyValues' => array(
            //    )
           // ),
            'barrierefrei.html' => array(
                'keyValues' => array(
					'type' => 98,
                )
            ),
            'print.html' => array(
                'keyValues' => array(
					'type' => 94,
                )
            ),
		),
    ),
    'postVarSets' => array(
        '_DEFAULT' => array (
            'index' => array(
                array(
                    'GETvar' => '',
                ),
            ),
            'galerie' => array(
                array(
                    'GETvar' => 'tx_gooffotoboek_pi1[srcdir]',
                ),
			),
            'fid' => array(
                array(
                    'GETvar' => 'tx_gooffotoboek_pi1[fid]',
                ),
			),
            'func' => array(
                array(
                    'GETvar' => 'tx_gooffotoboek_pi1[func]',
                ),
			),
			
            'article' => 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' => 0,
    ),
);
// ENDE REAL URL
trainerth ·

Jaha, sehr cool.

Thx wunschtacho, könntest du mir bei gelegenheit (wenn es deine zeit zuläßt) auch erklären wo da mein fehler lag?

So nun aber direkt noch ne frage hinter her, wo sach ich dem biest denn das auch die zweite ebene der menustruktur wichtig für mich ist?


Error!
Reason: Segment "printdesign" was not a keyword for a postVarSet as expected!

Das sagt er mir wenn ich einen nicht Hauptlink anklicke... #angry#

mfg Trainer

toyde ·

Ich komme bei mehrmaligen Durchlesen nicht dahinter, was das spezifische Problem darstellt.

Dann anders herum:
RealURL Howto » #41317

grüsse

toyde ·
trainerth schrieb

So nun aber direkt noch ne frage hinter her, wo sach ich dem biest denn das auch die zweite ebene der menustruktur wichtig für mich ist?

Nein, klingt nicht sehr typoianisch was hier geschrieben wird 😉 .

Ausserdem: wenn Du baseUrl inkl. Installationsort über "domain.de/typo3/" drinstehen hast und Dich das selbst stört - dann suchst Du die Antworten irgendwie im falschen Thema.

grüsse