Revert bad rename, which missed recent changes to the page.

master
joshtriplett 2007-04-06 06:45:40 +00:00
parent a6d999df1c
commit a74c729e88
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,22 @@
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]
>> 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]]

View File

@ -1 +0,0 @@
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?