2. Configuration
2.1. Automatic
- The
setup.php
script will automatically create bothconfig.inc.php
and.htaccess
files
2.2. Manual
- Copy the configuration sample file
cp config.sample.inc.php config.inc.php
- Edit the configuration file
nano config.inc.php
- Create the
.htaccess
file like:<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wikidocs/ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?doc=$1 [NC,L,QSA] <IfModule>
- Make sure that RewriteBase is the same as the PATH in the configuration file