How-to: install Habari in a sub-directory
I do not want for many files to be put on root directory. therefore, I installed Habari by the following methods.
- first, install Habari in the subdirectory (e.g. /habari/).
- create /index.php file in your text editor and save the following line:
<?php
include('habari/index.php');
?> - create /.htaccess file in your text editor and save the following line:
RewriteEngine on
RewriteRule ^(system|3rdparty|scripts)/(.*)$ /habari/$1/$2 [L]
RewriteRule ^user/(themes|plugins|files)/(.*)$ /habari/user/$1/$2 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]










