I happen to have solved this problem with TYPOlight on an IIS server. First off; IIS does no rewriting of its own. Or at least not that I know of, so just changing the .htaccess and the rewrite switch will not help you much!
You need to install an isapi module for that. I used Ionic's Isapi Rewrite Filter. When you have that filter installed (follow their instructions) then you need to construct a version of the .htaccess file that the rewriter will understand (it will not use the existing .htaccess files)
The file I made is called IsapiRewrite4.ini:
Code:
# IsapiRewrite4.ini
#
# TYPOlight Rewrite URL
#
#RewriteLogLevel 5
RewriteRule ^(/?index\.php.*)$ $1 [L]
RewriteRule ^(/?preview\.php.*)$ $1 [L]
RewriteRule ^(/?)(.*\.html)$ $1index.php/$2 [L]
#RewriteRule (.*css)$ $1 [I,L]
#RewriteRule (.*xml)$ $1 [I,L]
#RewriteRule (.*js)$ $1 [I,L]
#RewriteRule ^/(?!index.php)(?!tl_files)(?!system)(?!plugins)(?!templates)(?!typolight)(?!contao)(.*)$ /index.php/$1 [I,L]
There are no guarantees that my file will work, but at least it gives you an almost complete method as to how to get this working!
ps, also I am not sure what IIS server I did this on. That means that this method might only work for some IIS versions. Additionally; it was for an earlier TYPOlight version so the htaccess for contao may have changed. I did include contao into the rules I posted above.
Bookmarks