[TYPO3-german] RealUrl Problem: .html geht nicht

Thomas Hirt info at thomas-hirt.at
Mon Apr 12 21:58:39 CEST 2010


Hi!
Ich habe RealUrl auf einigen Seiten problemlos laufen und bin jetzt bei einer neuen Seite auf ein Problem gestoßen, 
obwohl ich die selbe Configuration wie immer benutze.
Weiß mir nicht zu helfen und kann den Fehler nicht finden. Hat jemand unter euch einen Hinweis?

Folgendes geht wunderbar:
www.example.com/ueber-uns

Folgendes geht nicht:
www.example.com/ueber-uns.html

Also sobald ich .html dranhänge wird die Seite nicht gefunden.
Bei allen anderen Seiten klappt das problemlos.

Habt ihr eine Idee?
Könnte das was mit dem Server Einstellungen zu tun haben?
Ich vermute es, denn es hat auf diesem Server schon mal geklappt und jetzt nicht mehr.

RealUrl 1.8.0
TYPO3 4.3.3

Grüße,
Thomas


---------------


config {
   simulateStaticDocuments = 0
   tx_realurl_enable = 1
   #anchors with prefix
   prefixLocalAnchors = all

   # no parameter twice or more
   uniqueLinkVars = 1

   baseURL = http://www.example.com/
}



.htaccess
#####
#
# Example .htaccess file
#
# This file contains a collection of almost everything you will need
# for optimising TYPO3:
#
# - mod_rewrite (used for SimulateStaticDocuments, RealUrl, etc.)
# - PHP optimisation
#
# If you want to use it, you'll need to rename this file to '.htaccess'.
# (To make this work you will need to adjust the 'AllowOverride'
# directive in your Apache configuration file.)
#
# IMPORTANT: You may need to change this file depending on your TYPO3
# installation!
#
# You should change every occurance of TYPO3root/ to the location where you
# have your website in. For example:
# If you have your website located at http://mysite.com/
# then your TYPO3root/ is just empty (remove 'TYPO3root/')
# If you have your website located at http://mysite.com/some/path/
# then your TYPO3root/ is some/path/ (search and replace)
#
# If you have problems with this file, try using the minimal
# mod_rewrite.htaccess which is located in the typo3_src/misc/
# directory of this installation.
#
# You can also use this configuration in your httpd.conf, but you'll have
# to modify some lines, see the comments (search for 'httpd.conf')
#
# Using rewriting in your httpd.conf is much faster, btw.
#
# Questions about this file go to the matching Install mailing list,
# see http://typo3.org/documentation/mailing-lists/
#
####

### Begin: Rewrite stuff ###

# Enable URL rewriting
RewriteEngine On

# To assist in debugging rewriting, you could use these lines
# DON'T enable it for production!
# This will only work in httpd.conf, not in .htaccess files
#RewriteLog /var/log/apache/rewrite.log
#RewriteLogLevel 9

# If you use the RealUrl extension, then you'll have to enable the next line.
# You will have to change this path if your TYPO3 installation is located
# in a subdirectory of the website root.
#
# If you place this in httpd.conf, you cannot use this directive in any case!
#RewriteBase /

# Stop rewrite processing if we are in the typo3/ directory
# For httpd.conf, use this line instead of the next one:
# RewriteRule ^/TYPO3root/(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/ - [L]
RewriteRule ^(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/ - [L]

# Redirect http://mysite/typo3 to http://mysite/typo3/index_re.php
# and stop the rewrite processing
# For httpd.conf, use this line instead of the next one:
# RewriteRule ^/TYPO3root/typo3$ /TYPO3root/typo3/index.php [L]
RewriteRule ^typo3$ typo3/index_re.php [L]

# If the file/symlink/directory does not exist => Redirect to index.php
# Important note: If you copy/paste this into httpd.conf instead
# of .htaccess you will need to add '%{DOCUMENT_ROOT}' left to each
# '%{REQUEST_FILENAME}' part.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

# Main URL rewriting.

# If you use Windows and SimulateStaticDocuments do not work, try adding a
# slash (/) right before 'index.php' below.

# The example shows how to rewrite only *.html and *.pdf files to index.php
# This may be helpful when using an extension that can generate PDF files
# on the fly.
# Example: RewriteRule .*\.(html|pdf)$ index.php [L]

# For httpd.conf, use this line instead of the next one that has no '#':
# RewriteRule .* /TYPO3root/index.php [L]

# For use with the RealUrl extension, you might need to remove the
# RewriteBase directive somewhere above and use this line instead of the
# next one: RewriteRule .* /index.php [L]

RewriteRule .* index.php [L]

### End: Rewrite stuff ###

### Begin: PHP optimisation ###

# All features below are left to the default if you don't change this.
# Simply remove the comment marks if you want to use some/all of these
# settings

# The PHP developers recommend disabling this feature. Do that.
# It's deprecated and is likely to be unsupported in future versions of PHP.
##php_flag allow_call_time_pass_reference off

# TYPO3 works fine with register_globals turned off.
# This is highly recommended!
##php_flag register_globals off

# PHP may not declare the argv & argc variables (that would contain the GET
# information).
# TYPO3 doesn't need this, so just turn it off.
##php_flag register_argc_argv off

# Magic quotes for runtime-generated data (data from SQL, exec(), etc.)
##php_flag magic_quotes_gpc off

# Order in which PHP registers GET, POST, Cookie and Built-in variables
##php_value variables_order GPCS

### End: PHP optimisation ###

### Begin: Miscellaneous ###

# Make sure that directory listings are disabled
#Options -Indexes

# There is a problem with Internet Explorer and mod_gzip on Apache servers.
# For more information, see
# http://typo3.org/documentation/document-library/rtehtmlarea/Tutorial-79/
#mod_gzip_item_exclude file \.css$
#mod_gzip_item_exclude file \.png$
#mod_gzip_item_exclude file \.gif$
#mod_gzip_item_exclude file \.jpg$
#mod_gzip_item_exclude file \.jpeg$
#mod_gzip_item_exclude file \.js$

### End: Miscellaneous ###

RealUrl-Configuration
<?php
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array (
     '_DEFAULT' => array (
         'init' => array (
             'useCHashCache' => '0',
             'enableCHashCache' => '1',
             'appendMissingSlash' => 'ifNotFile',
             'respectSimulateStaticURLs' => 'FALSE',
             'enableUrlDecodeCache' => '0',
             'enableUrlEncodeCache' => '0',
         ),

         'redirects' => array (
         ),

         'preVars' => array (
             '0' => array (
                 'GETvar' => 'no_cache',
                 'valueMap' => array (
                     'nc' => '1',
                 ),
                 'noMatch' => 'bypass',
             ),

             '1' => array (
                 'GETvar' => 'tx_ttnews[pS]',
                 'valueMap' => array (
                     'test1' => '1',
                     'test2' => '2',
                 ),
                 'noMatch' => 'bypass',
             ),

             '2' => array (
                 'GETvar' => 'tx_ttnews[pL]',
                 'valueMap' => array (
                     'test1' => '1',
                     'test2' => '2',
                 ),
                 'noMatch' => 'bypass',
             ),
         ),

	'pagePath' => array (
             'type' => 'user',
             'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
             'spaceCharacter' => '-',
             'languageGetVar' => 'L',
             'expireDays' => '1',
             'firstHitPathCache' => '1',
             'rootpage_id' => '1',
         ),

         'fixedPostVars' => array(

			'mm_forum_pi3' => array(
				array(
					'GETvar'            => 'tx_mmforum_pi3[folder]',
					'valueMap'          => array(
						'posteingang'		=> 'inbox',
						'postausgang'		=> 'send',
						'archiv'			=> 'archiv',
					)
				),
				array(
					'GETvar'            => 'tx_mmforum_pi3[action]',
					'valueMap'          => array(
						'lesen'				=> 'message_read',
						'schreiben'			=> 'message_write',
						'loeschen'			=> 'message_del',
					)
				),
				array(
					'GETvar'            => 'tx_mmforum_pi3[messid]',
					'lookUpTable'       => array(
						'table'                 => 'tx_mmforum_pminbox' ,
						'id_field'              => 'uid',
						'alias_field'           => 'subject',
						'addWhereClause'        => ' AND NOT deleted',
						'useUniqueCache'        => 1,
						'useUniqueCache_conf'   => array(
							'strtolower'            => 1,
							'spaceCharacter'        => '_',
						),
					),
				),
				array(
					'GETvar'            => 'tx_mmforum_pi3[userid]',
					'lookUpTable'       => array(
						'table'                 => 'fe_users' ,
						'id_field'              => 'uid',
						'alias_field'           => 'username',
						'addWhereClause'        => ' AND NOT deleted',
						'useUniqueCache'        => 1,
						'useUniqueCache_conf'   => array(
							'strtolower'            => 1,
							'spaceCharacter'        => '_',
						),
					),
				)
			),
		
			'mm_forum_pi1' => array(
				array(
					'GETvar'            => 'tx_mmforum_pi1[action]',
					'valueMap'          => array(
						'themen'                => 'list_topic',
						'beitraege'             => 'list_post',
						'benutzer'              => 'forum_view_profil',
						'antworten'             => 'new_post',
						'eroeffnen'             => 'new_topic',
						'melden'                => 'post_alert',
						'bearbeiten'            => 'post_edit',
						'loeschen'              => 'post_del',
						'alle_beitraege'        => 'post_history',
						'unbeantwortet'         => 'list_unans',
						'ungelesen'             => 'list_unread',
						'alles_gelesen'         => 'reset_read',
						'abonnieren'            => 'set_havealook',
						'abo_loeschen'          => 'del_havealook',
						'favorit'               => 'set_favorite',
						'kein_favorit'          => 'del_favorite',
						'praefix'               => 'list_prefix',
						'anhaenge'              => 'get_attachment',
					),
				),
				array(
					'GETvar'            => 'tx_mmforum_pi1[fid]',
					'lookUpTable'       => array(
						'table'                 => 'tx_mmforum_forums' ,
						'id_field'              => 'uid',
						'alias_field'           => 'forum_name',
						'addWhereClause'        => ' AND NOT deleted',
						'useUniqueCache'        => 1,
						'useUniqueCache_conf'   => array(
							'strtolower'            => 1,
							'spaceCharacter'        => '_',
						),
					),
				),
				array(
					'GETvar'            => 'tx_mmforum_pi1[tid]',
					'lookUpTable'       => array(
						'table'                 => 'tx_mmforum_topics' ,
						'id_field'              => 'uid',
						'alias_field'           => 'topic_title',
						'addWhereClause'        => ' AND NOT deleted',
						'useUniqueCache'        => 1,
						'useUniqueCache_conf'   => array(
							'strtolower'            => 1,
							'spaceCharacter'        => '_',
						),
					),
				),
				array(
					'GETvar'            => 'tx_mmforum_pi1[pid]',
				),
				array(
					'GETvar'            => 'tx_mmforum_pi1[page]',
				),
				array(
					'GETvar'            => 'tx_mmforum_pi1[user_id]',
					'lookUpTable'       => array(
						'table'                 => 'fe_users' ,
						'id_field'              => 'uid',
						'alias_field'           => 'username',
						'addWhereClause'        => ' AND NOT deleted',
						'useUniqueCache'        => 1,
						'useUniqueCache_conf'   => array(
							'strtolower'            => 1,
							'spaceCharacter'        => '_',
						),
					),
				),
				array(
					'GETvar'            => 'tx_mmforum_pi1[user_id]',
					'lookUpTable'       => array(
						'table'                 => 'fe_users' ,
						'id_field'              => 'uid',
						'alias_field'           => 'username',
						'addWhereClause'        => ' AND NOT deleted',
						'useUniqueCache'        => 1,
						'useUniqueCache_conf'   => array(
							'strtolower'            => 1,
							'spaceCharacter'        => '_',
						),
					),
				),
												
			),
			'175' => 'mm_forum_pi1',
			'177' => 'mm_forum_pi3',
		),

		'postVarSets' => array (
             	'_DEFAULT' => array (
             		'photobook' => array(
					array(
						'GETvar' => 'tx_gooffotoboek_pi1[srcdir]',
					),
			
					array(
						'GETvar' => 'tx_gooffotoboek_pi1[fid]',
					),
			
					array(
						'GETvar' => 'tx_gooffotoboek_pi1[func]',
						'valueMap' => array(
							'thumbnails' => 'thumb',
						),
					),
				),

                 'browse' => array(
                 	array(
                 		'GETvar' => 'tx_ttnews[pointer]',
                 		'valueMap' => array(
                 			'weiter' => '1',
                 			'weiter' => '2',
                 		)
                 	),
                 ),

                 // news kategorien
                  'kategorie' => 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,
                  				'spaceCharacter' => '-',
                  			),
                  		),
                  	),
                  ),

                  // news tagssearch
             	'tag' => array(
                		 array(
                     		'GETvar' => 'tx_ttnews[swords]',
                 	),
             	),
             	
             	// comments pagebrowser
             	'comments' => array(
             		array(
             			'GETvar' => 'tx_comments_pi1[page]',
                 	),
             	),

                  // news artikel
                  'datum' => array(
                  	array(
                  		'GETvar' => 'tx_ttnews[year]',
                  	),

                     array(
                     	'GETvar' => 'tx_ttnews[month]',
                     ),

                     array(
                     	'GETvar' => 'tx_ttnews[day]',
                     ),

                     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' => '-',
                     		),
                     	),
                     ),

                 ),
             ),
         ),

		'fileName' => array (
//
// if you don't want .html-URLs set the following to "false" (e.g. 'defaultToHTMLsuffixOnPrev' => false,)
// then you get http://www.yourdomain.com/imprint/ instead of http://www.yourdomain.com/imprint.html
//
             'defaultToHTMLsuffixOnPrev' => false,
             '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',
                     ),
                 ),
             ),
         ),
     ),
);

$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.wege-aus-der-krise.at']=$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.wege-aus-der-krise.at']['pagePath']['rootpage_id']=1;
// ID der rootpage der 1. domain

$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.alternativenforen.at']=$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.alternativenforen.at']['pagePath']['rootpage_id']=24;
// ID der rootpage der 2. domain

?>



More information about the TYPO3-german mailing list