[TYPO3-german] RealUrl - Alles aus f die RootPage
joerg jungermann
joju at math.upb.de
Mon May 1 12:03:06 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi !
Ich hab versuch RealUrl zum laufen zu bewegen, ich habe mich via
realurl/doc/manual.sxw und den Tutorial auf [23] und [42] auf das
Experiement vorbereitet.
Das Problem: Die Url werden in den generierten Seiten korrekt um
gesetzt, d.h. aus http://vhost.domain/index.php?id=5 wird
http://vhost.domain/news.html. Jedoch egal welchen simulierten Link ich
aufrufe, typo3 zeigt mir immer die rootPage an, die in der
RealUrl-Config als Root-Page id für die Domain angegeben ist.
Irgendwie scheint also die Umsetzung Url -> Id nicht zu passen.
Warum weiss ich nicht ?
Was hingegen funktioniert ist, wenn die seite einen Alias hat, dann
klappt die Umsetzung zu id.
Angebelich soll das aber auch ohne Aliase funktionieren. Wäre cool, da
ich nicht den nerv habe auf dem Praxissystem wo es laufen soll später,
>1000 Seiten mit Aliasen zu versehen.
Kann mir jemand einen Tipp geben ?
Das System: Apache 2/debian/php5
rewrite-rules / .htaccess:
[...]
# url rewriting fuer RealUrl
RewriteEngine On
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]
RewriteRule ^uploads/.*$ - [L]
RewriteRule ^typo3temp/.*$ - [L]
RewriteRule ^fileadmin/.*$ - [L]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php
[...]
TS-Template-Config:
[...]
config.simulateStaticDocuments = 0
#config.baseURL = http://localhost/
config.baseURL = /
config.tx_realurl_enable = 1
config.prefixLocalAnchors = all
[...]
realurl-configuration:
[...]
# vim:ts=4
#- encoding
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc'][]
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
#- decoding
$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'] = array(
'_DEFAULT' => array(
'init' => array(
'respectSimulateStaticURLs' => 1,
'appendMissingSlash' => 'ifNotFile',
'enableCHashCache' => 1,
'enableUrlDecodeCache' => 1,
'enableUrlEncodeHash' => 1,
),
'rewrite' => array(
),
'redirects' => array(
),
'pagePath' => array(
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '',
#'spaceCharacter' => '_',
#'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 3 ,
'rootpage_id' => 1 ,
'disablePathCache' => 1,
),
'preVars' => array(
array(
'GETvar' => 'L',
'valueMap' => array(
'de' => '0',
'en' => '1',
'valueDefault' => 'de',
'noMatch' => 'null',
),
),
array(
'GETvar' => 'type',
'valueMap' => array(
'print' => 98,
),
'noMatch' => 'bypass',
#'noMatch' => 'null',
),
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'no_cache' => 1,
),
'noMatch' => 'bypass',
),
),
'fixedPostVars' => array(
'newsdetails' => array(
array(
'GETvar' => 'cHash',
),
array(
'GETvar' => 'backPID',
),
array(
'GETvar' => 'tt_news',
'lookUpTable' => array(
'table' => 'tt_news',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'maxLenght' => 15,
'useUniqueCache' => 'TRUE',
'useUniqueCache_conf' => array(
'strtolower' => 'TRUE',
'spaceCharacter' => '-',
),
),
),
array(
'GETvar' => 'pS',
),
array(
'GETvar' => 'pL',
),
array(
'GETvar' => 'arc',
'valueMap' => array(
'archiv' => 1,
),
),
),
'31' => 'newsdetails',
'newsindex' => array(
array(
'GETvar' => 'cHash',
),
array(
'GETvar' => 'backPID',
),
array(
'GETvar' => 'begin_at',
),
),
'20' => 'newsindex',
),
'fileName' => array(
'defaultToHTMLsuffixOnPrev' => true,
'index' => array(
'index.html'=> array(
'keyValues' => array(
'type' => 1,
),
),
),
),
), // End _DEFAULT
'eborkum.de' => '_DEFAULT',
'localhost' => '_DEFAULT',
);
[...]
cya
[23]
http://www.tugmuc.de/tugmuc-projekte/realurl-aktivieren-und-konfigurieren.html
[42]
http://www.webinteger.net/magazin/articles/typo3-cms/realurl-20-extension-verwenden/
- --
Joerg Jungermann
- ------------------------------------------------------------
Rechnerbetrieb Mathematik | Zuständig für:
Universität-Paderborn - Fakultät 5 | Linux, Typo3, Web
- ------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEVdzasta551Pt/1URAm/cAKCb+kgeW0uSIfyvzw7smDjWdFKw/wCfYnEi
g99Vb+KFTbYlVJ2Mxia6qU0=
=WFzm
-----END PGP SIGNATURE-----
More information about the TYPO3-german
mailing list