[TYPO3-german] Typo3 3.8.1 realURL 1.0.0 mod_rewrite problem
Rudolf Kaltenboeck
rudolf at xarch.at
Mon Jan 16 12:53:59 CET 2006
Einen wunderschönen guten Tag!
Bin kurz davor, mir wegen RealURL und mod_rewrite die Haare zu raufen,
deshalb erlaube ich mir mal, hier zu posten.
bin dabei, eine 2sprachige Site aufzubauen (default = de, optional en),
hat bis jetzt auch ganz prima funktioniert. Seit dem Einspiele von
Realurl (1.0.0) in typo3 3.8.1 geht gar nichts mehr, bzw. das erstellen
der suchmaschinenfreundlichen URLs funktioniert ja (i.e aus
http://www.kathrinkulle.de/apache2-default/index.php?id=25
für die deutsche Version wird die Adresse
http://www.kathrinkulle.de/apache2-default/de/homepage.html
bzw. aus
http://www.kathrinkulle.de/apache2-default/index.php?id=25&L=1
für die englische Version wird
http://www.kathrinkulle.de/apache2-default/english/homepage.html
so weit, so gut. aber keiner der so erstellten links funktioniert, der
apache liefert immer zurück:
Not Found
The requested URL /apache2-default/english/homepage.html was not found
on this server.
Apache Server at www.kathrinkulle.de Port 80
Die ursprünglichen Typo3-Links (index.php?id .....) funktionieren nach
wie vor.
Ich vermute also, dass das Problem irgendwo bei mod_rewrite liegt. Das
Modul ist auf dem Apache2 auf alle Fälle geladen, das Log bleibt IMMER
leer (obwohl Logging aktiviert ist und der Webserver auch Schreibrechte
auf das logfile hat.
Weiss jemand weiter? Es scheint ja viele Probleme mit Realurl zu geben,
aber ich habe kein postiung/keine Anleitung gefunden, die mein Problem
reproduziert.
Besten Dank und einen schönen Tag
Rudolf
/etc/apache2/httpd.conf
---------------------------------------------------------------------
ServerTokens ProductOnly
# This is here for backwards compatability reasons and to support
# installing 3rd party modules directly via apxs2, rather than
# through the /etc/apache2/mods-{available,enabled} mechanism.
#
#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so
#LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
RewriteLog /var/log/apache2/rewritelog
RewriteLogLevel 2
#
# Directives to allow use of AWStats as a CGI
#
Alias /awstatsclasses "/var/www/apache2-default/wwwroot/classes/"
Alias /awstatscss "/var/www/apache2-default/wwwroot/css/"
Alias /awstatsicons "/var/www/apache2-default/wwwroot/icon/"
ScriptAlias /awstats/ "/var/www/apache2-default/wwwroot/cgi-bin/"
#
# This is to permit URL access to scripts/files in AWStats directory.
#
<Directory "/var/www/apache2-default/wwwroot">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
.htaccess in /var/www/apache2-default
----------------------------------------------------
RewriteEngine On
RewriteBase apache2-default/
RewriteLog /var/log/apache2/rewritelog
RewriteLogLevel 2
Options FollowSymLinks
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^[^/]*\.html$ index.php
TypoScript template
-----------------------------------------------------
config.simulateStaticDocuments = 0
config.baseURL = 1
config.baseURL = www.kathrinkulle.de/apache2-default/
config.tx_realurl_enable = 1
config.prefixLocalAnchors = all
/var/www/apache2-default/typo3conf/ext/realurl/ext_localconf.php
----------------------------------------------------------------
<?php
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc']['tx_realurl']
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc']['tx_realurl']
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearPageCacheEval']['tx_realurl']
= 'EXT:realurl/class.tx_realurl.php:&tx_realurl->clearPageCacheMgm';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urldecodecache']
= 'tx_realurl_urldecodecache';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urlencodecache']
= 'tx_realurl_urlencodecache';
$TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';
// ab hier neu!!!!
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
//--------------------------------------------
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'no_cache' => 1,
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array(
'de' => '0',
'german' => '0',
'en' => '1',
'english' => '1',
),
'valueDefault' => 'de',
),
),
/* 'fileName' => array (
'index' => array(
'page.html' => array(
'keyValues' => array (
'type' => 1,
)
),
'_DEFAULT' => array(
'keyValues' => array(
)
),
),
),
*/
//----------------------------------------------
'fileName' => array(
'index' => array(
//additional to add print link:
'print.html' => array(
'keyValues' => array(
type => 98,
)
),
),
'_DEFAULT' => array(
'keyValues' => array(
)
),
// add .html suffix to the end of the path generated
'defaultToHTMLsuffixOnPrev' => 1,
),
'pagePath' => array(
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 3
),
);
?>
More information about the TYPO3-german
mailing list