changed git call from https to git readonly
[atutor.git] / mods / wiki / fragments / htaccess
1 # This file is to be used with the Apache or Nanoweb webserver.
2 #
3 # Rename it to .htaccess (or .nwaccess for Nanoweb) in a dedicated
4 # directory for your Wiki.
5 #
6 # It uses the mod_rewrite to look a bit more professional 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
10 # indexed fully.
11 #
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 (at least when you use the PHP-CGI variant), because the
15 # Apache Group once choosed to follow that never finished and
16 # heavily broken (proposed) "CGI/1.1 RFC".
17
18 #-- enable mod_rewrite (Apache + Nanoweb)
19 RewriteEngine On
20
21 #-- pass WikiWord-URLs to the wiki wrapper script:
22 RewriteRule  ^((\w+/)?[A-Z]+[a-z]+\w*[A-Z]+\w+)$  yoursite.php/$1  [L]
23
24 #-- or this one, if there is really nothing else in the same directory:
25 #RewriteRule  ^(.*)$  yoursite.php?id=$1  [L]