---
title: "Realurl & Installation in Verzeichnis"
url: "https://www.typo3.net/d/22634-realurl-installation-in-verzeichnis"
source: "typo3.net"
tags: ["Extensions","Frage","RealURL","Server & Hosting"]
created: "2005-03-17"
last_reply: "2005-03-17"
replies: 0
solved: false
page: 1
pages: 1
lang: "de"
---

# Realurl & Installation in Verzeichnis

Extensions · 0 Antworten · gestartet 2005-03-17

## Eröffnungsbeitrag

**just2b** · 2005-03-17 · [Beitrag #1](https://www.typo3.net/d/22634-realurl-installation-in-verzeichnis/1)

Hallo,

ich hab ein Problem mit meiner RealUrl-Konfiguration. Lokal funktioniert alles super, aber am Webspace hab ich das Problem, dass zwar die Links konfiguriert werden, aber ich dann eine 404 Error-Meldung bekomme.

Der Fehler muss darin liegen, dass Realurl oder die htaccess irgendwie nicht erkennen, dass Typo in einem Verzeichnis liegt bzw. dass ich das noch irgendwo mitteilen muss, aber wo?

Meine .htaccess

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

In der localconf hab ich den Vorschlag von tt_news genommen

```php
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array('_DEFAULT' => array(),

### Add your server name here ###
    '***.**.**.***' => array('init' => array('enableCHashCache' => 1,
            // 'appendMissingSlash' => 'ifNotFile',
            'enableUrlDecodeCache' => 1,
            'enableUrlEncodeCache' => 1,
            ),
        'redirects' => array(),
        'preVars' => array(
            array('GETvar' => 'no_cache',
                'valueMap' => array('nc' => 1,
                    ),
                'noMatch' => 'bypass',
                ),
            array('GETvar' => 'L',
                'valueMap' => array('dk' => '1',
                    'de' => '2',
                    ),
                'noMatch' => 'bypass',
                ),
            ),
        'pagePath' => array(

		'type' => 'user',
            'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
            'spaceCharacter' => '-',
            'languageGetVar' => 'L',
            'expireDays' => 7,
### Add the id of the rootpage in your pagetree ###
            'rootpage_id' => 1,
            ),
        'fixedPostVars' => array(),
        'postVarSets' => array('_DEFAULT' => array(

                // archive
                'period' => array(
                    array('condPrevValue' => -1,
                        'GETvar' => 'tx_ttnews[pS]' ,
                        // 'valueMap' => array(
                        // )
                        ),
                    array('GETvar' => 'tx_ttnews[pL]' ,
                        ),
                    array('GETvar' => 'tx_ttnews[arc]' ,
                        'valueMap' => array('archived' => 1,
                            'non-archived' => -1,
                            )
                        ),
                    ),

                // pagebrowser
                'browse' => array(
                    array('GETvar' => 'tx_ttnews[pointer]',
                       ),
                    ),
				// select news by category
                'select' => 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,
                                ),
                            ),
                        ),
                    ),

				// backPid link
//                'back_to' => array(
//                    array('GETvar' => 'tx_ttnews[backPid]',
//					 'lookUpTable' => array('table' => 'pages',
//                            'id_field' => 'uid',
//                            'alias_field' => 'title',
//                            'addWhereClause' => ' AND NOT deleted',
//                            'useUniqueCache' => 1,
//                            'useUniqueCache_conf' => array('strtolower' => 1,
//                                'spaceCharacter' => '-',
//                               ),
//                           ),
//                        ),
//                    ),


				// news title
                'article' => array(
                  array('GETvar' => 'tx_ttnews[backPid]',
                        ),
                    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' => '-',
                                ),
                            ),
                        ),
                    array('GETvar' => 'tx_ttnews[swords]'
                       ),
                    ),
                ),
            ),
        'fileName' => array('index' => array('rss.xml' => array('keyValues' => array('type' => 100,
                        ),
                    ),
                // 'index.html' => array(
                // 'keyValues' => array(),
                // ),
                ),

            'defaultToHTMLsuffixOnPrev' => 1,
            ),
        )
    );
```

Ich weiß nicht, ob das was nützt, aber ich hab einige Tests mit einem einfachen redirect per htacess gemacht, und wenn ich in die htaccess schreibe

```plaintext
redirect 301 / http://www.bla.org/
```

,so komm ich auf die Seite <http://www.bla.org/VERZEICHNIS/VERZEICHNIS> => verzeichnis/verzeichnis ist ident mit dem pfad, in dem meine installation liegt
eine korrekte Weiterleitung passiert nur mit

```plaintext
redirect 301 /VERZEICHNIS/VERZEICHNIS/ http://www.bla.org/
```

Wer hat hier einen Tipp für mich, wäre echt wahnsinnig toll!!
danke!
georg

---

Quelle: „Realurl & Installation in Verzeichnis“, typo3.net, https://www.typo3.net/d/22634-realurl-installation-in-verzeichnis
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
