3 <Directory /usr/share/cowiki/htdocs>
7 # Values for PHP. If you are running PHP as CGI, set the values embeded
8 # in <IfModule mod_php...> directly in your php.ini configuration file.
11 php_value session.auto_start 0
12 php_value session.use_trans_sid 0
16 # URL-Rewriting for coWiki. If you do not want to use this feature
17 # simply set the COWIKI_URL_REWRITE variable to "Off" and comment out
18 # the RewriteRule in the following line. Do not forget to delete all cache
19 # files (usually in /tmp/) *before* you re-request a coWiki script! Cached
20 # files will still contain rewritten links. This is also true for your
21 # session data, hence you must erase all session data manually.
23 <IfModule mod_rewrite.c>
27 SetEnv COWIKI_URL_REWRITE On
28 RewriteRule ^([0-9]+)\.html$ index.php?node=$1&%{QUERY_STRING}
29 RewriteRule ^([0-9]+)\.([0-9]+)\.html$ index.php?node=$1&comid=$2%{QUERY_STRING}
33 # Handle WikiWord URLs
35 RewriteRule ^([A-Z0-9]+[A-Za-z0-9]*)/([A-Z0-9]+[A-Za-z0-9]*)/*$ index.php?webname=$1&docname=$2&%{QUERY_STRING}
36 RewriteRule ^([A-Z0-9]+[A-Za-z0-9]*)/*$ index.php?webname=$1&%{QUERY_STRING}
43 DocumentRoot /usr/share/cowiki/htdocs