[Typo3-dev] Real Url module setup
Grank
inovoseltsev at b2services.com
Thu Nov 18 11:18:04 CET 2004
Good day!
I've set up the Real URL module on my Typo3 site. Unfortunately the
links are not looking well.
For example, the http://[my_domen]/index.php?id=18 link is turned into
http://[my_domen]/18/ link, instead of http://[my_domen]/home.html
Any idea, or suggestion would be appreciated! Thank you muchly in
advance!
My settings:
TS
config {
tx_realurl_enable = 1
baseURL = 1
simulateStaticDocuments = 0
}
rootpage_id = 10
.htaccess
RewriteEngine On
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
#RewriteRule .* index.php
RewriteRule (\.html|)$ index.php
ext_localconf.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']['checkAlternative
IdMethods-PostProc'][] =
'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCac
he_additionalTables']['tx_realurl_urldecodecache'] =
'tx_realurl_urldecodecache';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCac
he_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(
'[my_domen]' => array(
'init' => array(
'enableCHashCache' => '1',
'enableUrlDecodeCache' => '1',
'enableUrlEncodeCache' => '1',
),
'redirects' => array(
),
'preVars' => array(
'0' => array(
'GETvar' => 'no_cache',
'valueMap' => array(
'nc' => '1',
),
'noMatch' => 'bypass',
),
'1' => array(
'GETvar' => 'L',
'valueMap' => array(
'fr' => '0',
'en' => '1',
'it' => '4',
),
'noMatch' => 'bypass',
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => '3',
'rootpage_id' => '10',
),
'fixedPostVars' => array(
),
'postVarSets' => array(
'_DEFAULT' => array(
'period' => array(
'0' => array(
'condPrevValue' => '-1',
'GETvar' => 'tx_ttnews'pS,
),
'1' => array(
'GETvar' => 'tx_ttnews'pL,
),
'2' => array(
'GETvar' => 'tx_ttnews'arc,
'valueMap' => array(
'archived' => '1',
'non-archived' => '-1',
),
),
),
'browse' => array(
'0' => array(
'GETvar' => 'tx_ttnews'pointer,
),
),
'select' => array(
'0' => array(
'GETvar' => 'tx_ttnews'cat,
'lookUpTable' => array(
'table' => 'tt_news_cat',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => '1',
'useUniqueCache_conf' => array(
'strtolower' => '1',
),
),
),
),
'article' => array(
'0' => array(
'GETvar' => 'tx_ttnews'backPid,
),
'1' => 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' => '-',
),
),
),
'2' => array(
'GETvar' => 'tx_ttnews'swords,
),
),
),
),
'fileName' => array(
'index' => array(
'rss.xml' => array(
'keyValues' => array(
'type' => '100',
),
),
),
'defaultToHTMLsuffixOnPrev' => '1',
),
),
);
More information about the TYPO3-dev
mailing list