[TYPO3] realURL - every page redirects to front page

Brian Bendtsen bb at bellevuevej.dk
Mon Jul 14 16:32:22 CEST 2008


Xavier Perseguers skrev:
> Dmitry Dulepov [typo3] wrote:
>> Hi!
>>
>> Brian Bendtsen wrote:
>>> The links look fine, though I wonder why no data is displayed in the 
>>> ID-to-path mapping in the backend.
>>
>> Are you logged in to Backend? Then cache is disabled.
>>
>>> How do I enable rewrite log? Is this from inside Typo3?
>>>
>>> The server i IIS
>>
>> No idea for IIS :( I used Apache even when I was on Windows.
> 
> That's the point. How did you configure IIS to redirect all not existing 
> pages to index.php? When you use Apache, you have to activate the 
> default .htaccess that comes with TYPO3. But as IIS does not understand 
> this, do you have some ISAPI filter you activated? Without asking IIS to 
> redirect to index.php in case you try to get an non existing file, 
> RealURL will not be called at all. Is this your problem?
> 
Hi

On the IIS server we have installed an application called ISAPI rewrite 
which handles the url rewriting. The application comes with a httpd.ini 
file where you write your rewrite rules - this usually works:

[ISAPI_Rewrite]

# RealURL: rewrite pages with parameters
RewriteRule 
^/(?!typo3.*|media|fileadmin|t3lib|uploads|index\.php|robots\.txt|favicon\.ico)(.*)\?(.*) 
/index.php\?$2 [U,L]

# RealURL: rewrite pages without parameters
RewriteRule 
^/(?!typo3.*|media|fileadmin|t3lib|uploads|index\.php|robots\.txt|favicon\.ico)(.*) 
/index.php [U,L]

If I leave the httppd.ini file blank I get a normal 404 error page, so I 
think its a setting in the realUrl that causes the redirection to the 
front page but im not 100% sure.

/Brian


More information about the TYPO3-english mailing list