summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-04-04 01:26:42 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-04-04 01:26:42 +0000
commit727c184904902ca235ace5098ef193974115f550 (patch)
treed45caa7e0cf97befd38e2c41dac0a33c984d6108
parentaee4621bae3c3596cc4fb97c84920b7e619b2f3d (diff)
RewriteRule example
-rw-r--r--doc/todo/Autogenerate_a_.htaccess_file_with_redirects_from_foo.html_to_corresponding_index.html.mdwn10
1 files changed, 10 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 14f2350a4..27dcbd9d3 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
@@ -2,3 +2,13 @@ Now that ikiwiki supports using page/index.html rather than page.html, how about
> 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 !^/cgi-bin/
+ RewriteRule (.+).html $1/ [R]
+ #RewriteRule /~family/(.+).html /~family/$1/ [R]