1 # This is file is to be used with the Apache or Nanoweb webserver.
3 # Rename it to .htaccess (or .nwaccess for Nanoweb) in a dedicated
4 # directory for your Wiki.
6 # It uses the mod_rewrite to look a bit more professionall than
7 # the usual GET-vars at the end of our URLs. This is highly
8 # recommended as things like "script.php?edit=1&id=page" usually
9 # scare search engines and may prevent your Wiki from getting
12 # Please edit ewiki.php and enable EWIKI_USE_PATH_INFO for Apache
13 # webservers - the PATH_INFO implementation is very broken for many
14 # versions (mostly commercial Unicies and for PHP-CGI variants),
15 # because to the Apache Group once choosed to follo that never
16 # finished and heavily broken (proposed) CGI/1.1 specification.
18 #-- enable mod_rewrite (Apache + Nanoweb)
21 #-- pass WikiWord-URLs to the wiki wrapper script:
22 RewriteRule ^((\w+/)?[A-Z]+[a-z]+\w*[A-Z]+\w+)$ yoursite.php/$1 [L]
24 #-- or this one, if there is really nothing else in the same directory:
25 #RewriteRule ^(.*)$ yoursite.php?id=$1 [L]