[TYPO3-english] Realurl: making .../page = .../page/ = .../page.html

Claudio Strizzolo claudio.strizzolo at ts.nogarb.ageinfn.it
Thu May 13 13:50:50 CEST 2010


Hi all,
I am trying to configure RealURL in order to make pages reachable with 
different URLs.
With my current configuration (see below), the following paths point to 
the same page whose name is "pagetitle":

.../pagetitle.html
.../pagetitle/

In the automatically created menus, the page is listed as pagetitle.html, 
which is what I want. So far, so good.

Now, I'd like to make the same pages reachable with

.../pagetitle

too, without the final slash.
I hoped this would work, but it does not:

'appendMissingSlash' => 'ifNotFile'
(...)
'defaultToHTMLsuffixOnPrev' => 1

Any hints?

Thanks in advance,

Claudio

-------------------------------------------------------
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
     '_DEFAULT' => array(
        'init' => array(
          'enableCHashCache' => 1,
          'appendMissingSlash' => 'ifNotFile',
          '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(
                 'it' => '0',
                 'en' => '6',
              ),
              'noMatch' => 'bypass',
              'valueDefault' => 'it',
            ),
        ),
        'fileName' => array(
           'defaultToHTMLsuffixOnPrev' => 1,
        ),
        'pagePath' => array(
           'type' => 'user',
           'userFunc' => 'EXT:realurl/
class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
           'spaceCharacter' => '-',
           'languageGetVar' => 'L',
           'expireDays' => '10',
           'rootpage_id' => '34',
        ),
        'fixedPostVars' => array(),
        'postVarSets' => array(
          '_DEFAULT' => array(
              // news pagebrowser
              'browse' => array(
                 array(
                   'GETvar' => 'tx_ttnews[pointer]',
                 ),
              ),
              // news articles and searchwords
              'article' => array(
                array(
                  'GETvar' => 'tx_ttnews[tt_news]',
                  'lookUpTable' => array(
                    'table' => 'tt_news',
                    'id_field' => 'uid',
                    //'alias_field' => 'title',
                    'alias_field' => "CONCAT(title,'-',uid)",
                    'addWhereClause' => ' AND NOT deleted',
                    'useUniqueCache' => 1,
                    'useUniqueCache_conf' => array(
                       'strtolower' => 1,
                       'spaceCharacter' => '-',
                    ),
                  ),
                ),
                array(
                  'GETvar' => 'tx_ttnews[swords]',
                ),
              ),
          ),
        ),
    ),
 );


More information about the TYPO3-english mailing list