![]() |
| | LinkBack | Themen-Optionen | Thema bewerten | Ansicht |
|
#1
| |||
| |||
Hallo, einen Teil ("team-steinlach-wiesaz") meines mit RealURL generierten URL möchte ich weglassen, d.h. mit Nichts ersetzen. Dazu habe ich mir einen regulären Ausdruck generiert.(siehe 2. Zeile .htaccess). Der URL wird wie gewünscht erzeugt, allerdings bekomme ich nicht die entsprechende Seite sondern die Fehlermeldung "Reason: Segment "das-team" was not a keyword for a postVarSet as expected!" wobei "das-team" der jeweilige Seitentitel ist. Laut Apache-Handbuch sollte ich ja den [L=last]-Parameter weglassen, aber wenn ich das mache, wird der URL nicht mehr verändert. Setze ich die RewriteRule ans Ende der Datei, passiert auch nichts mehr. Ich verwende realurl 1.1.0, Typo3 4.1.2 und aeurltool 0.1.0 für die RealURL-PHP-Konfiguration. Ist meine RewriteRule nicht ganz richtig, nicht an der richtigen Stelle, passt die PHP-Konfiguration plötzlich nicht mehr dazu(warum, wie ändern)? ... - ich bin für jeden Tip dankbar! Grüße, Gregor Hyneck . Code: htaccess-Datei:
RewriteEngine On
RewriteRule ^(.*)team-steinlach-wiesaz(.*) $1$2 [R,L]
RewriteRule ^/typo3$ - [L]
RewriteRule ^/typo3/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* /index.php . Code: <?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 (
),
'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',
),
'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',
),
),
),
),
),
);
?> Geändert von hyneck (29.05.08 um 21:45 Uhr). |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| RealURL .htaccess --> 403 | DoMiNiK2 | Suchmaschinenfreundliche URLs (SEO) | 10 | 21.04.08 11:17 |
| Gelöst RewriteRule ganze url umschreiben | stev | TYPO3 4.x Fragen und Probleme | 3 | 30.10.07 08:58 |
| htaccess Frage | maxhb | Forum Bar | 4 | 16.10.06 15:49 |
| htacces+rewriteRule | zefix | TYPO3 4.x Fragen und Probleme | 4 | 25.06.06 16:22 |