X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=doc%2Ftips%2Fredirections_for_usedirs.mdwn;h=588b9f4b5438aece4b40ac9c15a991597967215c;hb=38003fe23a8358f08d22bc5f85c087e5f329e7e9;hp=2913691f0c27a4df7f933afa17dbd00f0b23e25f;hpb=786287b684c0fafe6c852f3f230543e61e948875;p=ikiwiki.git diff --git a/doc/tips/redirections_for_usedirs.mdwn b/doc/tips/redirections_for_usedirs.mdwn index 2913691f0..588b9f4b5 100644 --- a/doc/tips/redirections_for_usedirs.mdwn +++ b/doc/tips/redirections_for_usedirs.mdwn @@ -1,5 +1,9 @@ Want to turn on the `usedirs` setting on an existing wiki without breaking -all the links into it? Here's a way to do it for Apache, using the +all the links into it? + +#Apache and RewriteEngine + +Here's a way to do it for Apache, using the RewriteEngine. This example is for a wiki at the top of a web site, but can be adapted to other situations. @@ -21,6 +25,8 @@ be adapted to other situations. RewriteCond $1 !.*/index$ RewriteRule (.+).atom$ $1/index.atom +#lighttpd and mod_redirect + The following example is exactly the same thing written for lighttpd by using mod_redirect: $HTTP["url"] !~ "^/(~|doc/|ajaxterm|cgi-bin/)" {