RewriteRule example

master
joey 2007-04-04 01:26:42 +00:00
parent aee4621bae
commit 727c184904
1 changed files with 10 additions and 0 deletions

View File

@ -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]