Subfolder InvoicePlane installation doesn't work!


I’ve installed InvoicePlane with no problems, it all worked fine. Until the installation was done. I couldn’t access my installation anymore.

My htaccess looks like this:

## Run InvoicePlane in a subfolder
## If you are using a subfolder please remove the hash in front of the line ‘#RewriteBase /subfolder’
## and replace ‘subfolder’ with the actual name of your folder, i.e. ‘RewriteBase /invoices’

<IfModule mod_rewrite.c>

  RewriteEngine on
  RewriteBase /clients
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule . index.php [L]
  Redirect /setup http://youdontneedtoknow.this/
  ## Remove the hash in front of the following two lines if you want to force HTTPS
  #RewriteCond %{HTTPS} off
  #RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

This is what happens why I try to open youdontneedtoknow.this/clients


I am running this application on my DirectAdmin shared hosting server.

Thanks all for your help!

  • Justin

Please take a look at this topic: Wrong URL in 1.4.7


Thank you! Replacing the base url default to my own one fixed the problem!

So if you have your InvoicePlane on a directadmin server, replace line 18 in application\config\config.php with:

$config['base_url'] = 'http://youdontneedtoknow.this/subfolder';

Thank you for your fast response @Kovah

  • Justin