Zum Inhalt springen

Realurl google Bestätigungsseite & weniger Ordner

Erstellt am 28. Oktober 2007 · 1 Antwort · letzte Antwort am 24. Januar 2013

Tags: RealURL, Frage

eicher ·

Hallo,

habe 2 kleinere Probleme mit ext. Realurl:

  • 1.Die google Bestätigungs html-Seite wird nicht erkannt. Sie wird nur erkannt,wenn ich die .htaccess deaktiviere. Leider muss ich aus diesem Grund alle 2 Wochen die google Bestätigungsseite "selbst" wieder hochladen.. Darüberhinaus ist das Yahoo Ranking sehr schlecht, was meiner Meinung nach mit der Einstellung der .htaccess zusammenhängen könnte. Meine .htaccess:

    RewriteEngine On
    RewriteRule ^typo3$ - [L]
    RewriteRule ^typo3/.*$ - [L]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule .* /index.php
    
  • 2. Wie bekomme ich einen Unterordner gelöscht, der von einer ext. abhängt? Normale Ordner im Seitenbaum sind kein Problem!
    Beispiel zur ext. tt_products (ähnlich tt_news):

    http://www.beispiel.de/de/[b]einzelansicht[/b]/cat/[name-der-
    Kategorie]/backPID/select-list/products/[Produktname].html

    Fett gedruckte Ordner sollten nicht mehr angezeigt werden, um die Url nicht unnötig aufzublähen. Dafür muss es doch eine Möglichkeit geben. Hier meine ext_localconf.php:

    'fixedPostVarSets' => array(
    	   ),
    	   	'postVarSets' => array(
          		'_DEFAULT' => array(
          		
            'print'=> array(
                   array(
             		'GETvar' => 'type',
          		   'valueMap' => array(
                			'html' => '0',
             			   'druck' => '98',
             			   'pdf' =>'123',
             			   'useUniqueCache_conf' => array (
                   							'strtolower' => 1,
                   							'spaceCharacter' => '-',
                						),
          		   ),
             		'valueDefault' => 'html',
       		   ), ),
    
    		   			'cat' => array (
          				array (
             					//'GETvar' => 'tx_ttnews[cat]',
             					 'GETvar' => 'tx_ttproducts_pi1[cat]',
             					'lookUpTable' => array (
                						'table' => 'tt_products_cat ',
                						'id_field' => 'uid',
                						'alias_field' => 'title',
                						'addWhereClause'=> 'AND NOT deleted',
                						'useUniqueCache'=> 1,
    
                						'useUniqueCache_conf' => array (
                   							'strtolower' => 1,
                   							'spaceCharacter' => '-',
                						),
            	 				),
          				),
    			   ),
          'backPID' => array(
    				   array (
          					'GETvar' => 'tx_ttproducts_pi1[backPID]',
          					// 'valueMap => array(
          					// ),
    
          					'lookUpTable' => array (
          						'table' => 'pages',
          						'id_field' => 'uid',
          						'alias_field' => 'title',
          						'maxLength' => 20,
          						'addWhereClause'=> 'AND NOT deleted',
          						'useUniqueCache'=> 1,
          						'useUniqueCache_conf' => array (
             							'strtolower' => 1,
             							'spaceCharacter' => '-',
          						),
    					   ),
       				),     ),
       				'begin' => array(
    				   array (
          					'GETvar' => 'tx_ttproducts_pi1[begin_at]',
          					// 'valueMap => array(
          					// ),
    
          					'lookUpTable' => array (
          						'table' => 'pages',
          						'id_field' => 'uid',
          						'alias_field' => 'title',
          						'maxLength' => 20,
          						'addWhereClause'=> 'AND NOT deleted',
          						'useUniqueCache'=> 1,
          						'useUniqueCache_conf' => array (
             							'strtolower' => 1,
             							'spaceCharacter' => '-',
          						),
    					   ),
       				),     ),
       				'products' => array(
    				   array (
          					'GETvar' => 'tx_ttproducts_pi1[product]',
    					      'lookUpTable' => array (
          						'table' => 'tt_products',
          						'id_field' => 'uid',
          						'alias_field' => 'title',
                       						'maxLength' => 20,
          						'addWhereClause'=> 'AND NOT deleted',
          						'useUniqueCache'=> 1,
    
          						'useUniqueCache_conf' => array (
             							'strtolower' => 1,
             							'spaceCharacter' => '-',
          						),
    					   ),
    				),
            ),
    		),
    	),
    

    Hoffentlich kann mir jemand weiterhelfen.

    Viele Grüße

    Stefan

😃

George Mason ·

tt_products mit realurl, weniger Ordner, unnötige Pfadsegmente entfernen, tt_products URL optimieren

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
	'init' => array(

	),
	'redirects_regex' => array (
	),
	'pagePath' => array(
	),	
	'postVarSets' => array(
		'_DEFAULT' => array(		
			'seite' => array(
				array(
					'GETvar' => 'tt_products[begin_at]',
					'valueMap' => array(
						'0' => '0',
						'1' => '1',
						'2' => '2',
					),
				),
			),
		),             
	),
	
	'fixedPostVars' => array(
		'_DEFAULT' => array(
			// tt_products categories
			array(
				'GETvar' => 'tt_products[cat]',
				'lookUpTable' => array(
					'table' => 'tt_products_cat',
					'id_field' => 'uid',
					'alias_field' => 'title',
					'addWhereClause' => ' AND NOT deleted',
					'useUniqueCache' => 1,
					'useUniqueCache_conf' => array(
					'strtolower' => 1,
					'spaceCharacter' => '_'
					),
				 ),
			),
			// tt_products products
			array(
				'GETvar' => 'tt_products[product]',
				'lookUpTable' => array(
					'table' => 'tt_products',
					'id_field' => 'uid',
					'alias_field' => 'title',
					'addWhereClause' => ' AND NOT deleted',
					'useUniqueCache' => 1,
					'useUniqueCache_conf' => array(
					'strtolower' => 1,
					'spaceCharacter' => '_'
					),
				 ),
			),
		),
	),
);