Zum Inhalt springen

Realurl unter IIS läßt keine index.php mehr zu

Erstellt am 21. März 2007 · 1 Antwort · letzte Antwort am 2. April 2007

Tags: RealURL, Frage

Drachenkind ·

Hallo zusammen!

Wir haben Typo3 4.1 mit Realurl erfolgreich unter IIS mit IISRewrite zum laufen gebracht.

Soweit ich das verstehe, sollen aber reguläre Seitenaufrufe
über den Frontcontroller index.php weiterhin möglich sein,
insbesondere um Extensions, die nicht Realurl-konform sind,
nicht das Wasser abzudrehen.

Leider funzt dat net bei uns.
Jegliche Aufrufe über index.php landen auf der Startseite...
ebenso funktioniert dann natürlich auch Web->Anzeigen nicht mehr, Admin-Panel und Live-Editing.

Jemand ne Idee?

Sind echt am verzweifeln und müssen das zum laufen bringen!
Viele Grüße!

René


realurl: ext_localconf

$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['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_pathcache'] = 'tx_realurl_pathcache';

$TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';

//Beginn REAL URL
/*
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc'][] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc'][] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';
$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';
*/


$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
    'init' => array(
        'enableCHashCache' => 1
    ),
    'preVars' => array(
        array(
            'GETvar' => 'no_cache',
            'valueMap' => array(
                'no_cache' => 1,
            ),
            'noMatch' => 'bypass',
                ),
        ),
    'fileName' => array (
                'defaultToHTMLsuffixOnPrev' => 1,
        'index' => array(
            'barrierefrei.html' => array(
                'keyValues' => array(
                                        'type' => 98,
                )
            ),
            'print.html' => array(
                'keyValues' => array(
                                        'type' => 94,
                )
            ),
            'infomail.html' => array(
                'keyValues' => array(
                                        'cmd' => 'infomail',
                )
            ),
       ),
    ),
    'postVarSets' => array(
        '_DEFAULT' => array (
            'index' => array(
                array(
                    'GETvar' => '',
                ),
            ),

            'article' => array(
                array(
                    'GETvar' => 'tx_ttnews[tt_news]',
                ),
                array(
                   'GETvar' => 'tx_ttnews[backPid]',
                ),
            ),
            'category' => array(
                array(
                    'GETvar' => 'tx_ttnews[cat]',
                ),
            ),
            'neste' => array(
                array(
                    'GETvar' => 'tx_ttnews[pointer]',
                ),
             ),
             'download' => array(
                array(
                    'GETvar' => 'download',
                ),
             ),
             'event' => array(
                array(
                    'GETvar' => 'tx_julleevents_pi1[showUid]',
                ),
                array (
                	'GETvar' => 'tx_julleevents_pi1[sub]',
                ),
                array (
                	'GETvar' => 'tx_julleevents_pi1[mode]',
                ),
                array (
                	'GETvar' => 'tx_julleevents_pi1[pointer]',
                ),
             ),
             'hash' => array(
                array(
                    'GETvar' => 'cHash',
                ),
             ),

       ),

    ),

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

TS-Setup

# Setting up RealUrl
config.simulateStaticDocuments = 0
config.baseURL = http://www.unseredomain.de/
config.tx_realurl_enable = 1
config.prefixLocalAnchors = all

IISRewrite: rewrite.ini
RewriteEngine On

RewriteRule ^/typo3$ - [L]
RewriteRule ^/typo3/.*$ - [L]
RewriteRule ^/uploads/.*$ - [L]
RewriteRule ^/fileadmin/.*$ - [L]
RewriteRule ^/typo3conf/.*$ - [L]

RewriteRule ^/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)(/.*)?$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^/.* /index.php [L]

Drachenkind ·

Hallo Leute!

Haben Die Lösung selber gefunden.
Folgende Anweisungen in der rewrite.ini funzen
(zu beachten ist die dick markierte RewriteRule):

rewrite.ini Einstellungen:

RewriteEngine On

RewriteRule /index\.php.* $0 [L]
RewriteRule ^/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)(/.*)?$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^/.* /index.php [L]

gruss
rené