title: URL rewrite with IIRF makes dokuwiki slow
body: <p><strong>EDIT: the IIRF.ini code was not the problem in this case, the performance issues with dokuwiki were in fact permissions related, and the introduction of URL re-writing was not the cause of the issue.</strong></p>
  
  <p>I've got a new instance of Dokuwiki (i.e. almost empty, not in use) which was running perfectly fine, before I integrated URL-rewriting using IIRF.</p>
  
  <p>It now runs <em>significantly</em> more slowly - navigating between pages takes a number of seconds whereas before it was 'snappy' (immediate).</p>
  
  <p>I followed the directions for implementing IIRF <a href="http://www.dokuwiki.org/rewrite" rel="nofollow">here</a>, which basically involves adding an "IIRF.ini" file to the site root, and updating the "conf/local.php" file as instructed on the site linked above (code copied from under the heading "Ionics Isapi Rewrite Filter").</p>
  
  <p>So to clarify, URL-rewriting is <em>working</em>; but it's caused significant slow-down in navigating the wiki.  I'd appreciate it if anyone could offer a suggestion for bringing it up to speed again!</p>
  
  <p>This is the contents of my "IIRF.ini" file:</p>
  
  <pre><code>IterationLimit 1
  
  # QSA is not supported, fix it
  RewriteCond %{REQUEST_FILENAME}       !-f
  RewriteCond %{REQUEST_FILENAME}       !-d
  RewriteRule (.*)\?(.*) $1&amp;$2
  
  RewriteRule ^/_media/(.*)             /lib/exe/fetch.php?media=$1   [QSA,L]
  RewriteRule ^/_detail/(.*)            /lib/exe/detail.php?media=$1  [QSA,L]
  RewriteRule ^/_export/([^/]+)/(.*)    /doku.php?do=export_$1&amp;id=$2  [QSA,L]
  RewriteRule ^/$                       /doku.php                     [QSA,L]
  
  # infinite redirect fix
  RewriteCond %{REQUEST_FILENAME}       !-d
  RewriteRule ^/(.*)/$                  /doku.php?id=$1               [QSA,L]
  
  # end fix
  RewriteCond %{REQUEST_FILENAME}       !-f
  RewriteCond %{REQUEST_FILENAME}       !-d
  RewriteRule ^/(.*)                    /doku.php?id=$1               [QSA,L]
  </code></pre>