[TYPO3-english] RealURL and shortcuts

Lorenz Ulrich lorenz-typo3 at visol.ch
Mon Mar 14 12:09:47 CET 2011


Hi Victor

I don't know if that's best practice but I always enter a / to the 
"Speaking URL paths segment" field of the home page. That way I have

domain.tld/ instead of
domain.tld/home/

Internal links to such sites work correct, too.


Best regards,


Lorenz


Am 11.03.2011 22:03, schrieb Victor Livakovsky:
> Hi, List and hello, Dmitry.
>
> Most of websites, that I made long time ago had such a structure:
> Home (root)
> |
> -- Home (shortcut to root)
> -- Page 1
> -- Page 2
> ...
>
> The advantage of such structure was, that links in menus were generated
> this way:
> http://example.com/
> http://example.com/page-1.html
> http://example.com/page-2.html
> ....
>
> Notice, that first link was a base url - not http://example.com/home.html
> Now I created a new website with TYPO3 4.5.2, RealURL 1.10.2 and same
> structure, but this time shortcut is not resolved - it shows home.html
> instead of base url.
>
> I had a look at manual and found, that tx_realurl_advanced contains
> 'dontResolveShortcuts' boolean, I set it to false, but nothing happened.
>
>
> Here is the full config:
> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array (
> 'www.example.com' => array (
> 'init' => array (
> 'enableCHashCache' => true,
> 'appendMissingSlash' => 'ifNotFile',
> 'enableUrlDecodeCache' => true,
> 'enableUrlEncodeCache' => true,
> 'emptyUrlReturnValue' => true,
> 'emptySegmentValue' => '-'
> ),
> 'redirects' => array (
> ),
> 'preVars' => array (
> '0' => array (
> 'GETvar' => 'no_cache',
> 'valueMap' => array (
> 'nc' => '1',
> ),
> 'noMatch' => 'bypass'
> ),
> '1' => array (
> 'GETvar' => 'L',
> 'valueMap' => array (
> 'en' => '1',
> ),
> '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' => '1',
> 'disablePathCache' => '0',
> 'autoUpdatePathCache' => '0',
> 'dontResolveShortcuts' => '0',
> ),
> 'fixedPostVars' => array (
> ),
> 'postVarSets' => array (
> '_DEFAULT' => array (
> ),
> ),
> 'fileName' => array (
> 'defaultToHTMLsuffixOnPrev' => true,
> 'index' => array (
> 'rss.xml' => array (
> 'keyValues' => array (
> 'type' => '100',
> ),
> ),
> 'rss091.xml' => array (
> 'keyValues' => array (
> 'type' => '101',
> ),
> ),
> 'rdf.xml' => array (
> 'keyValues' => array (
> 'type' => '102',
> ),
> ),
> 'atom.xml' => array (
> 'keyValues' => array (
> 'type' => '103',
> ),
> ),
> 'sitemap.xml' => array (
> 'keyValues' => array (
> 'type' => '200',
> )
> ),
> ),
> ),
> ),
> );
>
> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['example.com'] =
> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.example.com'];



More information about the TYPO3-english mailing list