Wrong redirection


I installed the latest version on a Apache server. — in a subdirectory.
I followed the instruction like described on your Wiki pages.

When I go to the url mydomain.com/subdirectory I will be forwarded to mydomain.com/subdirectory/sessions/login, which give as result a not found page. I know that the correct url should be mydomain.com/subdirectory/index.php/sessions/login/

When I enter this correct url I see the login screen, but I can’t login. After submission of usermail and password I will be redirected to mydomain.com/subdirectory/sessions/login

    <IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /facturatie       #this is my subdirectory
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  ## 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]

Could I have some help in order to solve my problem.

Many thanks in advance.


Have you made sure your index.php and config.php are correct?

And shouldn’t your htaccess be more like

RewriteEngine on
RewriteBase /sub-directory
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]