Setting up ISAPIRewrite4.ini for Typo3

Topics: User Forum
Sep 28, 2007 at 3:04 PM
Edited Sep 28, 2007 at 3:05 PM
Hi,

I am complitly new in things like rewrite rules.
I tried it with rules from a apache htaccess file, but it doesn´t work.
Could someone give me a adwise how i can create IIRF rewrite rules for an Typo3 CMS

Cheers
Apr 2, 2010 at 9:16 AM
Edited Apr 2, 2010 at 7:27 PM

Yes it works! I tested it on my Windows XP with TYPO3 v. 4.3.2 and IIRF v.2.0.1.15.

If all is installed add this line to your localconf.php

$TYPO3_CONF_VARS['SYS']['requestURIvar'] = '_SERVER|HTTP_X_REWRITE_URL';

This is IIRF.ini that works for me.

RewriteEngine ON
StrictParsing ON
UrlDecoding ON
StatusUrl /iirfStatus

RewriteLog D:\LogFiles\iirf\iirf
RewriteLogLevel 1

# Config for TYPO3
RewriteRule ^/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)$ - [L]
RewriteRule ^/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.php [I,U,L,QSA]

 

 

regards

Tomek