---
title: "tx_news ignoriert RealURL-Konfiguration"
url: "https://www.typo3.net/d/115598-tx-news-ignoriert-realurl-konfiguration"
source: "typo3.net"
tags: ["Extensions","Frage","RealURL","TYPO3 6","tx_news"]
created: "2013-07-31"
last_reply: "2013-09-19"
replies: 3
solved: false
page: 1
pages: 1
lang: "de"
---

# tx_news ignoriert RealURL-Konfiguration

Extensions · 3 Antworten · gestartet 2013-07-31

## Eröffnungsbeitrag

**mistermax** · 2013-07-31 · [Beitrag #1](https://www.typo3.net/d/115598-tx-news-ignoriert-realurl-konfiguration/1)

Hallo,

irgendwie bleibt bei mir die RealURL-Konfiguration absolut ohne Wirkung für das News-Modul (news von Georg Ringer). Bei den statischen Seiten funktioniert es wunderbar. Für jegliche Hinweise wäre ich dankbar, da ich schon seit zwei Tagen nach Lösung suche.

Das Ding spuckt immer das aus:
<http://domain.tld/news/single-view/?tx_news_pi1%5Bnews%5D=4&cHash=0ad97ba219c47ea2fcc0cd0b3005e816>

Typo3 6.1.1
realurl 1.12.6
news 2.2.0

**.htaccess**

```php
<IfModule mod_rewrite.c>

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L]
RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L]
RewriteRule ^fileadmin/(.*/)?_recycler_/ - [F]
RewriteRule ^fileadmin/templates/.*(\.txt|\.ts)$ - [F]
RewriteRule ^typo3conf/ext/[^/]+/Resources/Private/ - [F]
RewriteRule ^(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L]
RewriteRule ^typo3$ typo3/index_re.php [L]

</IfModule>
```

**realurl_conf.php**

```php
<?php

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

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

    'init' => array(
      'enableCHashCache' => TRUE,
      'enableCHashCache' => 1,
      'respectSimulateStaticURLs' => 0,
      'appendMissingSlash' => 'ifNotFile',
      'enableUrlDecodeCache' => 1,
      'enableUrlEncodeCache' => 1,
      'postVarSet_failureMode' => 'redirect_goodUpperDir',
    ),

    'redirects' => array(),

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

    'fixedPostVars' => array(
      'newsDetailConfiguration' => array(
        array(
          'GETvar' => 'tx_news_pi1[news]',
          'lookUpTable' => array(
            'table' => 'tx_news_domain_model_news',
            'id_field' => 'uid',
            'alias_field' => 'title',
            'addWhereClause' => ' AND NOT deleted',
            'useUniqueCache' => 1,
            'useUniqueCache_conf' => array(
              'strtolower' => 1,
              'spaceCharacter' => '-'
            ),
            'languageGetVar' => 'L',
            'languageExceptionUids' => '',
            'languageField' => 'sys_language_uid',
            'transOrigPointerField' => 'l10n_parent',
            'autoUpdate' => 1,
            'expireDays' => 180,
          )
        )
      ),
      'newsCategoryConfiguration' => array(
        array(
          'GETvar' => 'tx_news_pi1[overwriteDemand][categories]',
          'lookUpTable' => array(
            'table' => 'tx_news_domain_model_category',
            'id_field' => 'uid',
            'alias_field' => 'title',
            'addWhereClause' => ' AND NOT deleted',
            'useUniqueCache' => 1,
            'useUniqueCache_conf' => array(
              'strtolower' => 1,
              'spaceCharacter' => '-'
            )
          )
        )
      ),
      'newsTagConfiguration' => array(
        array(
          'GETvar' => 'tx_news_pi1[overwriteDemand][tags]',
          'lookUpTable' => array(
            'table' => 'tx_news_domain_model_tag',
            'id_field' => 'uid',
            'alias_field' => 'title',
            'addWhereClause' => ' AND NOT deleted',
            'useUniqueCache' => 1,
            'useUniqueCache_conf' => array(
              'strtolower' => 1,
              'spaceCharacter' => '-'
            )
          )
        )
      ),
      '70' => 'newsDetailConfiguration',
      '701' => 'newsDetailConfiguration', // For additional detail pages, add their uid as well
      '71' => 'newsTagConfiguration',
      '72' => 'newsCategoryConfiguration'
    ),

    'postVarSets' => array(
      '_DEFAULT' => array(
        'controller' => array(
          array(
            'GETvar' => 'tx_news_pi1[action]',
            'noMatch' => 'bypass'
          ),
          array(
            'GETvar' => 'tx_news_pi1[controller]',
            'noMatch' => 'bypass'
          ),

          array(
            'GETvar' => 'tx_news_pi1[day]',
            'noMatch' => 'bypass',
          ),
          array(
            'GETvar' => 'tx_news_pi1[month]',
            'noMatch' => 'bypass',
          ),
          array(
            'GETvar' => 'tx_news_pi1[year]',
            'noMatch' => 'bypass',
          ),

        ),
        'dateFilter' => array(
          array(
            'GETvar' => 'tx_news_pi1[overwriteDemand][year]',
          ),
          array(
            'GETvar' => 'tx_news_pi1[overwriteDemand][month]',
          ),
        ),
        'page' => array(
          array(
            'GETvar' => 'tx_news_pi1[@widget_0][currentPage]',
          ),
        ),
      ),
    ),

  ),
);

?>
```

**TS Setup**

```typoscript
plugin.tx_news {
  settings {
    link {
      skipControllerAndAction = 1
      hrDate = 1
      hrDate {
        day = j
        month = n
        year = Y
      }
    }
  }
}
```

## Antworten

### [#2](https://www.typo3.net/d/115598-tx-news-ignoriert-realurl-konfiguration/2) · mistermax · 2013-07-31

Einen Fehler gefunden, die Zeilen 99-102 in realurl_conf.php angepasst (id der Seite mit Einzelansicht eingefügt):

```php
      '21' => 'newsDetailConfiguration',
//      '701' => 'newsDetailConfiguration', // For additional detail pages, add their uid as well
```

Nun bekomme ich folgendes:
<http://domain.tld/news/single-view/titel-des-newsbeitrages/>

### [#3](https://www.typo3.net/d/115598-tx-news-ignoriert-realurl-konfiguration/3) · George Mason · 2013-09-18

Ich habe genau das gleiche Problem wie Du am Anfang: JEGLICHE realurl-Konfiguration wird von news ignoriert, ich habe 1:1 Deine kopiert, die aus der offiziellen Doku (Basic), alle möglichen Schnipsel aus dem Netz schon probiert. Nichts.

An sich ist realurl aber korrekt eingerichtet, denn der Seitenpfad BIS zum News-Bereich wird korrekt übersetzt. Das heißt, htaccess und TS funktioniert.

Ich bekomme also nach wie vor:
<http://domain.tld/news/detailseite/?tx_news_pi1%5Bnews%5D=1&tx_news_pi1%5Bday%5D=4&tx_news_pi1%5Bmonth%5D=9&tx_news_pi1%5Byear%5D=2013&cHash=42239be66a9c5960e0b9fdf30e2d1c63>

Die News-Detailseite hatte ich, so wie Du, auch einmal übergeben, aber das ist laut Doku auch gar nicht nötig und hat auch nichts gebracht.

Typo3 6.1.3
News 2.2.0
Realurl 1.12.6

Hast Du schon ein Ticket eröffnet in der Forge oder soll ich?
<http://forge.typo3.org/projects/extension-news/issues>

### [#4](https://www.typo3.net/d/115598-tx-news-ignoriert-realurl-konfiguration/4) · George Mason · 2013-09-19

OK, ich habe in den Spiegel geschaut und dabei die Fehlerursache gefunden: bei mir war noch die realurl autoconf aktiviert (im Extensionmanager), und die funktioniert halt nicht mit dem neuen News-System. Und daran lag es auch, dass alle meine Bemühungen vergeblich waren,

---

Quelle: „tx_news ignoriert RealURL-Konfiguration“, typo3.net, https://www.typo3.net/d/115598-tx-news-ignoriert-realurl-konfiguration
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
