[TYPO3] google index only the first page my site

Mr. Pine pine1455 at yahoo.com
Wed Jun 7 08:12:19 CEST 2006


I submitted a site 2 months ago using google sitemap
(http://www.google.com/webmasters/sitemaps). The site was successfully
verified by google but only the first page is indexed by now.
I 'm useing realURL,(eg. www.mysite.com/index.php?id=12  changed to 
www.mysite.com/12), It works OK,
Anyone has some feedback on this?

--Pine


Here you can see all the steps that I followed!:
##################################
1)put lines below into .htaccess file in root of my typo3 site.
RewriteEngine On
RewriteRule ^admin$ - [L]
RewriteRule ^admin/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php

2)place these four lines in the main TypoScript template record of my 
website:
#Disable static document simulation
config.simulateStaticDocuments = 0

#Prefix anchors
config.prefixLocalAnchors = all

#Base tag
config.baseURL = 1

#Enable RealURL
config.tx_realurl_enable = 1

3)make a file named conf_realurl.php in /typo3conf/ and add these lines 
in it:

<?php
// realurl config
  $TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
     '_DEFAULT' => array(),
     //configuration matching only this domain
     'typo3.lehmano.de' => array(
          'init' => array(
              'enableCHashCache' => 1,
              // 'appendMissingSlash' => 'ifNotFile',
              'enableUrlDecodeCache' => 1,
              'enableUrlEncodeCache' => 1,
              ),
          'redirects' => array(),
          'preVars' => array(
              //match &no_cache=1 with path prefix /nc
              array(
                  'GETvar' => 'no_cache',
                  'valueMap' => array(
                      'nc' => 1,
                      ),
                  'noMatch' => 'bypass',
                  ),
              //multiple language matching L=2 is replaced by /dk
              //value are user defiened depending of the order you've 
inserted your
              //alternative language in TYPO3. See sys_language table for ID
              array(
                  'GETvar' => 'L',
                  'valueMap' => array(
                      'dk' => '2',
                      // 'dansk' => '2',
                      'de' => '1',
                      // 'deutsch' => '1',
                      ),
                  'noMatch' => 'bypass',
                  ),
               ),
           // use extended page name rendering
           // page names are converted to readalbe 
page/sub-page/sub-sub-page.html
          'pagePath' => array(
              'type' => 'user',
              'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
              'spaceCharacter' => '-',
              'languageGetVar' => 'L',
              'expireDays' => 7,
              'rootpage_id' => 454,
              // 
'encodeTitle_userProc'=>'EXT:realurl/tx_realurl_encodeTitle_userProc.php:&user_encodeDates',
              ),
          'fixedPostVars' => array(),
          // match extension parameter
          'postVarSets' => array(
              '_DEFAULT' => array(
                  // archive
                  'period' => array(
                      array(
                          'condPrevValue' => -1,
                          'GETvar' => 'tx_ttnews[pS]' ,
                          // 'valueMap' => array(
                          //
                          // )
                          ),
                      array(
                          'GETvar' => 'tx_ttnews[pL]' ,
                          // 'valueMap' => array(
                          //
                          // )
                          ),
                      array(
                          'GETvar' => 'tx_ttnews[arc]' ,
                          'valueMap' => array(
                              'archived' => 1,
                              'non-archived' => -1,
                              )
                           ),
                      ),
                  // pagebrowser
                  'browse' => array(
                      array(
                          'GETvar' => 'tx_ttnews[pointer]',
                          ),
                       ),
                  'select' => array (
                      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,
                                  ),
                              ),
                          ),
                      ),

                    // backPid link
  //                'back_to' => array(
  //                    array('GETvar' => 'tx_ttnews[backPid]',
  //                                      'lookUpTable' => array('table' 
=> 'pages',
//                            'id_field' => 'uid',
  //                            'alias_field' => 'title',
  //                            'addWhereClause' => ' AND NOT deleted',
  //                            'useUniqueCache' => 1,
  //                            'useUniqueCache_conf' => 
array('strtolower' => 1,
  //                                'spaceCharacter' => '-',
  //                               ),
  //                           ),
  //                        ),
  //                    ),
                   'article' => array(
                        array(
                            'GETvar' => 'tx_ttnews[backPid]',
                            ),
                        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' => '-',
                                  ),
                               ),
                          ),
                       array(
                           'GETvar' => 'tx_ttnews[swords]'
                          ),
                       ),
                   ),
              ),
          // map some type to file name: rss.xml = &typo=100
          'fileName' => array(
               'index' => array(
                    'rss.xml' => array(
                         'keyValues' => array(
                              'type' => 100,
                          ),
                      ),
                  // 'index.html' => array(
                  // 'keyValues' => array(),
                  // ),
                  ),
              // add .html suffix to the end of the path generated
              'defaultToHTMLsuffixOnPrev' => 1,
              ),
          )
      );
?>
4)Add the following line in  /typo3conf/localconf.php :
// Real URL configuration
require_once('conf_realurl.php');

5)also set in ext/realurl/ext_localconf.php
//$TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';
$TYPO3_CONF_VARS['FE']['addRootLineFields'].= 
',tx_realurl_pathsegment,alias,nav_title,title';







More information about the TYPO3-english mailing list