You are using IPv4 :(

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.

  1. first, install Habari in the subdirectory (e.g. /habari/).
  2. create /index.php file in your text editor and save the following line:
    
    <?php
    include('habari/index.php');
    ?>
    
  3. 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]