diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-05-13 08:30:53 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-05-13 08:30:53 +0000 |
commit | cb25b4c7c4a388cf7ec89659bac489335ffd93d7 (patch) | |
tree | 62ea1a22fe677551b7403e89f65c6ee7af08e2e8 /doc/tips | |
parent | 22f54e2f6dcbbd4d4570a715a38703935d41dfff (diff) |
web commit by hb: titles
Diffstat (limited to 'doc/tips')
-rw-r--r-- | doc/tips/redirections_for_usedirs.mdwn | 8 |
1 files changed, 7 insertions, 1 deletions
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/)" { |