---
title: "RealURL-Problem: zweite Domain funktioniert nicht. Betriebsblind?"
url: "https://www.typo3.net/d/109773-realurl-problem-zweite-domain-funktioniert-nicht-betriebsblind"
source: "typo3.net"
tags: ["Extensions","Frage","RealURL","URLs & Routing"]
created: "2012-03-14"
last_reply: "2012-03-15"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# RealURL-Problem: zweite Domain funktioniert nicht. Betriebsblind?

Extensions · 1 Antwort · gestartet 2012-03-14

## Eröffnungsbeitrag

**kingcasi** · 2012-03-14 · [Beitrag #1](https://www.typo3.net/d/109773-realurl-problem-zweite-domain-funktioniert-nicht-betriebsblind/1)

Hi zusammen,
ich habe ein Problem mit RealURL.
Habe alle Einstellungen zig mal gecheckt und kontrolliert, inzwischen auch aus diversen Tutorials und Threads Änderungen übernommen in der Hoffnung, dass das Problem gefixt ist... aber leider erfolglos.

Ich habe einen TYPO3-Tree mit 2 Domains: DomainA und DomainB.
DomainA läuft auf der rootPageID 1, DomainB auf 55

DomainA funktioniert in allen Einstellungen sauber und wird ordentlich umgeschrieben.
Sobald ich in DomainB aber RealurL aktiviere, wird nur die Startseite erfolgreich angezeigt.
Alle Unterseiten geben einen "HTTP/1.1 404 Not Found"zurück.

Zuerst dachte ich an die falsch eingelesene Root-ID, allerdings habe ich da auch diverses probiert ...

Der 404 deutet ja unter Umständen auch auf einen .htaccess-Fehler hin, allerdings kann ich da keinen Fehler erkennen und zudem funktioniert das rewriting der DomainA ja auch...

Ich poste mal hier die Konfigurationen, bin für jede Hilfe dankbar.

```php
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 (
										'de' => '0',
										'en' => '1',
								),
								'noMatch' => 'bypass',
						),
						'2' => array (
								'GETvar' => 'lang',
								'valueMap' => array (
										'de' => 'de',
										'en' => 'en',
								),
								'noMatch' => 'bypass',
						),
				),
				'pagePath' => array (
						'type' => 'user',
						'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
						'spaceCharacter' => '-',
						'languageGetVar' => 'L',
						'expireDays' => '7',
						// 	'rootpage_id' => '1',
						'rootpage_id' => '1',
				),
				'fixedPostVars' => array (
				),
				'postVarSets' => array (
						'_DEFAULT' => array (
								'archive' => array (
										'0' => array (
												'GETvar' => 'tx_ttnews[year]',
										),
										'1' => array (
												'GETvar' => 'tx_ttnews[month]',
												'valueMap' => array (
														'january' => '01',
														'february' => '02',
														'march' => '03',
														'april' => '04',
														'may' => '05',
														'june' => '06',
														'july' => '07',
														'august' => '08',
														'september' => '09',
														'october' => '10',
														'november' => '11',
														'december' => '12',
												),
										),
								),
								'browse' => array (
										'0' => array (
												'GETvar' => 'tx_ttnews[pointer]',
										),
								),
								'select_category' => array (
										'0' => array (
												'GETvar' => 'tx_ttnews[cat]',
										),
								),
								'article' => array (
										'0' => 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' => '-',
														),
												),
										),
										'1' => array (
												'GETvar' => 'tx_ttnews[swords]',
										),
								),
						),
				),
				'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' => true,
						'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',
										),
								),
						),
				),
		),
		
		
		'DUL' => 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 (
										'de' => '0'
								),
								'noMatch' => 'bypass',
						),
						'2' => array (
								'GETvar' => 'lang',
								'valueMap' => array (
										'de' => 'de'
								),
								'noMatch' => 'bypass',
						),
				),
				'pagePath' => array (
						'type' => 'user',
						'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
						'spaceCharacter' => '-',
						'languageGetVar' => 'L',
						'expireDays' => '7',
						// 	'rootpage_id' => '1',
						'rootpage_id' => '55',
				),
				'fixedPostVars' => array (
				),
				'postVarSets' => array (
						'_DEFAULT' => array (
								'archive' => array (
										'0' => array (
												'GETvar' => 'tx_ttnews[year]',
										),
										'1' => array (
												'GETvar' => 'tx_ttnews[month]',
												'valueMap' => array (
														'january' => '01',
														'february' => '02',
														'march' => '03',
														'april' => '04',
														'may' => '05',
														'june' => '06',
														'july' => '07',
														'august' => '08',
														'september' => '09',
														'october' => '10',
														'november' => '11',
														'december' => '12',
												),
										),
								),
								'browse' => array (
										'0' => array (
												'GETvar' => 'tx_ttnews[pointer]',
										),
								),
								'select_category' => array (
										'0' => array (
												'GETvar' => 'tx_ttnews[cat]',
										),
								),
								'article' => array (
										'0' => 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' => '-',
														),
												),
										),
										'1' => array (
												'GETvar' => 'tx_ttnews[swords]',
										),
								),
						),
				),
				'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' => true,
						'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',
										),
								),
						),
				),
		),		

		     'www.domainB.de' => 'DUL',
		
		     'domainB.de' => 'DUL',
		
		     'www.domainA.de' => '_DEFAULT',
		
		     'domainA.de' => '_DEFAULT',
		
);

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['enableDomainLookup'] = 1;
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domainA.de'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domainA.de']['pagePath']['rootpage_id'] = '1';
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domainB.de'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['DUL'];
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domainB.de']['pagePath']['rootpage_id'] = '55';
```

```php
RewriteEngine On
RewriteBase /
RewriteRule ^(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/ - [L]
RewriteRule ^typo3$ typo3/index_re.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* /index.php [L]

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
# ...

ErrorDocument 404 /error.html
```

```typoscript
config {
          prefixLocalAnchors = all
	  config.simulateStaticDocuments = 1
          baseURL = http://www.domainB.de/
          tx_realurl_enable = 0
          
          }
```

```typoscript
config.simulateStaticDocuments = 0
#config.locale_all = german
config.baseURL = http://www.domainA.de/
config.tx_realurl_enable =   1
```

Ich tippe mal, dass ich mich aufgrund von "Betriebsblindheit" irgendwie verfranst habe...

DAnke im voraus!

VG KC

## Antworten

### [#2](https://www.typo3.net/d/109773-realurl-problem-zweite-domain-funktioniert-nicht-betriebsblind/2) · iPit · 2012-03-15

...

Hast Du mal die Einstellungen in Deiner httpd-vhost.conf oder .htaccess und das dortige Rewrite geprueft?

Fuer beide Domains muss das rewrite angeschaltet sein

---

Quelle: „RealURL-Problem: zweite Domain funktioniert nicht. Betriebsblind?“, typo3.net, https://www.typo3.net/d/109773-realurl-problem-zweite-domain-funktioniert-nicht-betriebsblind
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
