
Originally Posted by
dkozlov
Can I skip installation of IIRF and install it later (is it vital for MindTouch)? I mean if I specify correct URLs it should work without redirection stuff.
No, you really need to redirect links that are generated to http://wiki/Page so they are rewritten to http://wiki/index.php?title=Page (or even ?title=, the empty string, for the main page).
Here is the .ini file that gets installed:
Code:
# IIRF rewrite rules for MindTouch Core
# Craig Box, 2009-06-20
# Based on https://svn.mindtouch.com/source/public/dekiwiki/9.02/config/deki-apache.conf
RewriteCond %{URL} ^/$
RewriteRule ^/$ /index.php?title= [L]
RewriteCond %{URL} ^(?!/(@api|editor|skins|config|deki)/)
RewriteCond %{URL} ^(?!/index\.php)
RewriteCond %{URL} ^(?!/favicon\.ico$)
RewriteCond %{URL} ^(?!/robots\.txt$)
RewriteCond %{URL} ^(?!/error/(.*)\.var$)
# RewriteCond %{QUERY_STRING} ^$ [OR] %{URL} ^/Special:Search
RewriteRule ^/([^\?]*)(?:\?(.*))?$ /index.php?title=$1&$2 [L]
# side note: I love it when googling for how to do things, to find that MT staff
# have asked the same question already and provided the answer :)
And here is the script that installs it:
Code:
cacls IsapiRewrite4.dll /e /g iis_wpg:R
cacls IsapiRewrite4.ini /e /g iis_wpg:R
cscript FiltTool.js -Name:IIRF -DLL:"$INSTDIR\IsapiRewrite4.dll" -Action:Add
So, it does appear to be added globally. You probably don't want that and I maybe should make it pop up a box to only apply to certain web sites.