.htaccess problem

Hello Community,

After replacing all the files (except for database.php) from my previous 1.4.6 installation, where I had similar problems, but can’t remember the solution anymore I am again having issues with .htaccess.

my subdomain is pointing to the invoice plane folder.

in application/config.php I changed line 29 to $config[‘index_page’] = ‘’;

and renamed htaccess to .htaccess to activate it.


RewriteEngine On
#RewriteBase /sales
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

When visiting the setup page by calling:

I get redirected to 

Which of course does not work...

If anybody could come up with a solution that'd be great.

Kind regards,

By fiddling with the index.php I found out, that SYSDIR and FCPATH all contain the absolute path to the invoice folder… How to avoid this in a nice way?

See Wrong URL in 1.4.7

Hey Kovah,

Changing the line

$config[‘base_url’] = (isset($_SERVER[‘HTTPS’]) && $_SERVER[‘HTTPS’] == ‘on’ ? ‘https://’ : ‘http://’) . ($_SERVER[‘HTTP_HOST’] ? $_SERVER[‘HTTP_HOST’] : $_SERVER[‘SERVER_NAME’]) . URL_SUBFOLDER;


$config[‘base_url’] = ‘http://subdomain.domain.com’;

Did the trick for me. Although I have a new issue which I am going to post in a new thread. Thanks.