[TYPO3-english] Re: Re: RealURL - shortcut to home

2017-11-10 Thread Dennis Hoffland

This realurlconf.php works for me:

 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!
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


[TYPO3-english] Re: Re: RealURL - shortcut to home

2017-09-14 Thread Dennis Hoffland

Hi Jigal,

I replaced _DEFAULT by www.mydomain.com as you suggested, but the speaking URL 
remains the same: www.mydomain.com/1

Except for the home page, everything seems to be working OK (speaking URLs are 
simply the page names, followed by .html).

As mentioned in my previous post the DB entries tell me even the speaking URL 
for the home page shortcut (id = 2) is generated as desired (home.html). 
However, it is somehow replaced by het speaking URL of the homepage itself (id 
= 1) in the menu.

Changing the values (0 or 1) for dontResolveShortcuts in the pagePath section 
of realurlconf.php doesn't seem te have any effect.

I am a bit lost here.

Would it be possible to post a realurlconf.php example of a working solution? 
Unfortunetly, 
https://github.com/dmitryd/typo3-realurl/wiki/Notes-for-Integrators#home-page-root-page-and-shortcuts
 only mentions the issue, but offers no code to resolve it.

Kind regards,

Dennis
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english