diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-04-05 23:17:09 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-04-05 23:17:09 +0000 |
commit | ec2373eb961f37b0e7db7cb82b8e3288d93c0da1 (patch) | |
tree | 940104e3b85d755d9b1b97ec1bf365ca9ae62793 | |
parent | 5b4083b95147b32bd978e915b63754b41b3e5bd1 (diff) | |
download | ikiwiki-ec2373eb961f37b0e7db7cb82b8e3288d93c0da1.tar ikiwiki-ec2373eb961f37b0e7db7cb82b8e3288d93c0da1.tar.gz |
web commit by JoshTriplett: RewriteCond and RewriteRule solve the problem. Documentation needed.
-rw-r--r-- | doc/todo/Autogenerate_a_.htaccess_file_with_redirects_from_foo.html_to_corresponding_index.html.mdwn | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/todo/Autogenerate_a_.htaccess_file_with_redirects_from_foo.html_to_corresponding_index.html.mdwn b/doc/todo/Autogenerate_a_.htaccess_file_with_redirects_from_foo.html_to_corresponding_index.html.mdwn index 46e525b9a..56b0d5890 100644 --- a/doc/todo/Autogenerate_a_.htaccess_file_with_redirects_from_foo.html_to_corresponding_index.html.mdwn +++ b/doc/todo/Autogenerate_a_.htaccess_file_with_redirects_from_foo.html_to_corresponding_index.html.mdwn @@ -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]] |