[TYPO3-english] Re: Re: RealURL - shortcut to home
Dennis Hoffland
d.o.hoffland at tele2.nl
Fri Nov 10 14:33:47 CET 2017
This realurlconf.php works for me:
<?php
// [TYPO3_SITE_URL] [preVars] [pagePath] [fixedPostVars] [postVarSets] [fileName]
// [preVars] : language
// [pagePath] : page ID
// [fixedPostVars] :
// [postVarSets] : extension plugin(s)
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
// '_DEFAULT' => array(
'www.mydomain.com' => array(
/*
'cache' => array(
'disable' => true,
),
*/
'init' =>
array(
'appendMissingSlash' => 'ifNotFile,redirect',
'emptyUrlReturnValue' => '',
),
'pagePath' =>
array(
'rootpage_id' => 1,
),
'fileName' =>
array(
'defaultToHTMLsuffixOnPrev' => 1,
'acceptHTMLsuffix' => 1,
'index' =>
array(
'print' =>
array(
'keyValues' =>
array(
'type' => 98,
),
),
'robots.txt' => array(
'keyValues' => array(
'type' => 201
)
)
),
),
'preVars' =>
array(
0 =>
array(
'GETvar' => 'L',
'valueMap' =>
array(
'nl' => 0,
'en' => 1,
),
'valueDefault' => 'nl'
),
),
'postVarSets' =>
array(
'_DEFAULT' =>
array(
'article' =>
array(
array(
'GETvar' => 'tx_news_pi1[action]',
),
array(
'GETvar' => 'tx_news_pi1[controller]',
),
array(
'GETvar' => 'tx_news_pi1[news]',
'lookUpTable' =>
array(
'table' => 'tx_news_domain_model_news',
'id_field' => 'uid',
'alias_field' => 'title',
'useUniqueCache' => 1,
'useUniqueCache_conf' =>
array(
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
),
),
),
),
);
php?>
Mind you: the home page has no URL section (home.html). It simply gets the URL www.mydomain.com. Any suggestions to add the home.html to that are still welcome!
More information about the TYPO3-english
mailing list