blob: 46e525b9a009b4e1acb9b1a2a3199dea3f0bb809 (
plain)
Now that ikiwiki supports using page/index.html rather than page.html, how about some mechanism to automatically generate a .htaccess file with "Redirect permanent" lines for each such page?
I was thinking of using an apache RewriteRule for this, haven't written
one yet though. --[[Joey]]
Here's a RewriteRule that I'm using for http://kitenet.net/, which
has an wiki at the top level that's using index.htmls, and some
other stuff that shouldn't be rewritten.
RewriteCond $1 !^/~
RewriteCond $1 !^/doc/
RewriteCond $1 !^/ajaxterm
RewriteCond $1 !^/cgi-bin/
RewriteCond $1 !.*/index$
RewriteRule (.+).html $1/ [R]
|