title: Typo3: RealURL and Ext:news – News URLs are not rewritten
body: <p>I'm runnning Typo3 6.2.4 with RealURL 1.12.8 and News (tx_news) 3.0.1. Using the automatic configuration from RealURL rewrites the URLs for "normal" pages, but not for news. The generated links look like this:</p>
  
  <pre><code>index.php?id=5&amp;tx_news_pi1%5Bnews%5D=4&amp;tx_news_pi1%5Bcontroller%5D=News&amp;tx_news_pi1%5Baction%5D=detail&amp;cHash=706379a0ef43d4020448c5193f865bf1
  </code></pre>
  
  <p>This is what automatic configuration gives me. I've just inserted the part from <a href="http://docs.typo3.org/typo3cms/extensions/news/Main/Administration/Realurl/Index.html" rel="nofollow">http://docs.typo3.org/typo3cms/extensions/news/Main/Administration/Realurl/Index.html</a>. At the moment I'm not interested in creating a special kind of rewritten URL, I just want to get RealURL rewrite the news URLs. Once that's running, I think I'll get the rest figured out.</p>
  
  <pre><code>&lt;?php
  $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array (
    '_DEFAULT' =&gt; 
    array (
      'init' =&gt; 
      array (
        'enableCHashCache' =&gt; true,
        'appendMissingSlash' =&gt; 'ifNotFile,redirect',
        'adminJumpToBackend' =&gt; true,
        'enableUrlDecodeCache' =&gt; true,
        'enableUrlEncodeCache' =&gt; true,
        'emptyUrlReturnValue' =&gt; '/',
      ),
      'pagePath' =&gt; 
      array (
        'type' =&gt; 'user',
        'userFunc' =&gt; 'EXT:realurl/class.tx_realurl_advanced.php:&amp;tx_realurl_advanced-&gt;main',
        'spaceCharacter' =&gt; '-',
        'languageGetVar' =&gt; 'L',
        'rootpage_id' =&gt; '1',
      ),
      'fileName' =&gt; 
      array (
        'defaultToHTMLsuffixOnPrev' =&gt; 0,
        'acceptHTMLsuffix' =&gt; 1,
        'index' =&gt; 
        array (
          'print' =&gt; 
          array (
            'keyValues' =&gt; 
            array (
              'type' =&gt; 98,
            ),
          ),
        ),
      ),
      'postVarSets' =&gt; 
      array (
        '_DEFAULT' =&gt; 
        array (
  // EXT:news start
  'news' =&gt; array(
          array(
                  'GETvar' =&gt; 'tx_news_pi1[action]',
          ),
          array(
                  'GETvar' =&gt; 'tx_news_pi1[controller]',
          ),
          array(
                  'GETvar' =&gt; 'tx_news_pi1[news]',
                  'lookUpTable' =&gt; array(
                          'table' =&gt; 'tx_news_domain_model_news',
                          'id_field' =&gt; 'uid',
                          'alias_field' =&gt; 'title',
                          'addWhereClause' =&gt; ' AND NOT deleted',
                          'useUniqueCache' =&gt; 1,
                          'useUniqueCache_conf' =&gt; array(
                                  'strtolower' =&gt; 1,
                                  'spaceCharacter' =&gt; '-',
                          ),
                          'languageGetVar' =&gt; 'L',
                          'languageExceptionUids' =&gt; '',
                          'languageField' =&gt; 'sys_language_uid',
                          'transOrigPointerField' =&gt; 'l10n_parent',
                          'autoUpdate' =&gt; 1,
                          'expireDays' =&gt; 180,
                  ),
          ),
  ),
  // EXT:news end
        ),
      ),
    ),
  );
  </code></pre>