web commit by JoshTriplett: RewriteCond and RewriteRule solve the problem. Documentation needed.

master
joey 2007-04-05 23:17:09 +00:00
parent 5b4083b951
commit ec2373eb96
1 changed files with 7 additions and 0 deletions

View File

@ -13,3 +13,10 @@ Now that ikiwiki supports using page/index.html rather than page.html, how about
RewriteCond $1 !^/cgi-bin/
RewriteCond $1 !.*/index$
RewriteRule (.+).html $1/ [R]
>> Nice solution. I think this would work for a newly-converted wiki as well,
>> using a condition to limit rewrites to that wiki's directory, and the
>> rewrite rule you propose. Thus, autogenerating seems unnecessary; we
>> should just have a documented, known-working RewriteCond and RewriteRule
>> for wikis that want to turn on the `usedirs` option. --[[JoshTriplett]]