Zum Inhalt springen

realurl mit mehreren Domains

Erstellt am 12. August 2009 · 1 Antwort · letzte Antwort am 17. August 2009

Tags: RealURL, URLs & Routing, Frage

Torsten.​E ·

Segment "community" was not a keyword for a postVarSet as expected!

Ich weis, o.g. Fehler schwirrt schon länger irgendwo herum, aber gelöst wird es irgendwie nicht.

Mehrere Domains in einer Typo3-Installation. Der Fehler tritt meist dann auf, wenn die Seiten gleich bezeichnet sind.

www.meinedomain.ch/community
www.meinedomain.de/community

Die Seiten haben eigenen content, aber irgendwie vermute ich mal, packt realurl das ganze nicht.

Hier mal meine Konfiguration:

<?php
/**
 *
 * aeUrlTool default realurl configuration
 * based on realurl-configuration of news.typo3.org
 * 	http://news.typo3.org/about/realurl-configuration/
 *
 */

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array (
    '_DEFAULT' => array (
        'init' => array (
            'enableCHashCache' => '1',
            'appendMissingSlash' => 'ifNotFile',
            'enableUrlDecodeCache' => '1',
            'enableUrlEncodeCache' => '1',
        ),
        'redirects' => array (
        ),

        'pagePath' => array (
            'type' => 'user',
            'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
            'spaceCharacter' => '-',
            'languageGetVar' => 'L',
            'expireDays' => '7',
            'rootpage_id' => '106',
        ),
        'fixedPostVars' => array (
        ),
       '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',
                    ),
                ),
            ),
        ),
    ),

);

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['postVarSets'] = array(
'_DEFAULT' => array(
   'wiki' => array(
      array(
            'GETvar' => 'tx_drwiki_pi1[keyword]',
      ),
      array(
            'GETvar' => 'tx_drwiki_pi1[showUid]',
      ),
      array(
            'GETvar' => 'tx_drwiki_pi1[cmd]',
      ),
   ),
)
);

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.schwedenhaus-ag.de'] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT'];
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.schwedenhaus-ag.de']['pagePath']['rootpage_id'] = 3;
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['schwedenhaus-ag.de'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.schwedenhaus-ag.de'];

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.schwedenhaus.at'] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT'];
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.schwedenhaus.at']['pagePath']['rootpage_id'] = 107;
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['schwedenhaus.at'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.schwedenhaus.at'];

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.sjoedalshus.ch'] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT'];
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.sjoedalshus.ch']['pagePath']['rootpage_id'] = 809;
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['sjoedalshus.ch'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.sjoedalshus.ch'];

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.casasvedese.it'] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT'];
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.casasvedese.it']['pagePath']['rootpage_id'] = 631;
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['casasvedese.it'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.casasvedese.it'];

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.casasvedese.ch'] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT'];
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['www.casasvedese.ch']['pagePath']['rootpage_id'] = 636;
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['casasvedese.ch'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.casasvedese.ch'];
?>
RewriteEngine On

# Leitet http://schwedenhaus-ag.de nach http://www.schwedenhaus-ag.de um
# damit Google das nicht als doppelten Content wertet
#
# Lezte Aenderung: 10. Juni 2008 (TE)

RewriteCond %{HTTP_HOST} ^schwedenhaus-ag.de$ [NC]
RewriteRule ^(.*) http://www.schwedenhaus-ag.de/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^schwedenhaus.ag$ [NC]
RewriteRule ^(.*) http://www.schwedenhaus-ag.de/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.schwedenhaus.ag$ [NC]
RewriteRule ^(.*) http://www.schwedenhaus-ag.de/$1 [R=301,L]

#RewriteCond %{HTTP_HOST} ^schwedenhaus.at$ [NC]
#RewriteRule ^(.*) http://www.schwedenhaus-ag.de/$1 [R=301,L]
#RewriteCond %{HTTP_HOST} ^www.schwedenhaus.at$ [NC]
#RewriteRule ^(.*) http://www.schwedenhaus-ag.de/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^inga-hellstroem.com$ [NC]
RewriteRule ^(.*) http://www.schwedenhaus-ag.de/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.inga-hellstroem.com$ [NC]
RewriteRule ^(.*) http://www.schwedenhaus-ag.de/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^inga-hellstroem.de$ [NC]
RewriteRule ^(.*) http://www.schwedenhaus-ag.de/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.inga-hellstroem.de$ [NC]
RewriteRule ^(.*) http://www.schwedenhaus-ag.de/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^schwedenhausvertrieb.de$ [NC]
RewriteRule ^(.*) http://www.schwedenhaus-ag.de/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.schwedenhausvertrieb.de$ [NC]
RewriteRule ^(.*) http://www.schwedenhaus-ag.de/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^maisonsuedoise.fr$ [NC]
RewriteRule ^(.*) http://www.schwedenhaus-ag.de/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.maisonsuedoise.fr$ [NC]
RewriteRule ^(.*) http://www.schwedenhaus-ag.de/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^maison-suedoise.fr$ [NC]
RewriteRule ^(.*) http://www.schwedenhaus-ag.de/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.maison-suedoise.fr$ [NC]
RewriteRule ^(.*) http://www.schwedenhaus-ag.de/$1 [R=301,L]



# URL nicht gefunden bei Google (Datum ist Problem ermittelt am)
#
# Hier die Eintraege nach Datum sortieren, damit diese dann
# auch wieder herausgenommen werden koennen

# 20.02.2009
# Änderung der URL's
Redirect permanent /wiki/wiki/ http://www.schwedenhaus-ag.de/holzhaus/wiki/

# 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|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/ - [L]
RewriteRule ^(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic|\.php)/ - [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 ###

# Add your own rules here
# ...

RewriteEngine On

#### Extension : fl_staticfilecache ###
#
# nicht installiert, da Extension nicht mit awstats
# funktioniert. 12. Februar 2008 TE
#
#RewriteCond %{REQUEST_METHOD} GET
#RewriteCond %{QUERY_STRING} ^$
#RewriteCond %{DOCUMENT_ROOT}/uploads/tx_flstaticfilecache%{SCRIPT_FILENAME}%{PATH_INFO}cache.html -f
#RewriteRule .* %{DOCUMENT_ROOT}/uploads/tx_flstaticfilecache%{SCRIPT_FILENAME}%{PATH_INFO}cache.html [L]

RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php

AddType image/x-icon .ico

php_flag url_rewriter.tags 'a=href,area=href,frame=src,fieldset='

Vielleicht habe ich irgendwo grundsätzlich einen Fehler drin.