I've got a website on Joomla 1.5 during my base dir - http://example.com - and the other project designed in Kohana 2.x - http://example.com/app.

However , .htaccess within the subdirectory is not working correctly.

Question: How and which .htaccess to configure? In subdirectory, my .htaccess file appears like this:

RewriteEngine On
RewriteBase /app/
RewriteRule ^(application|system) - [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]

The project in subdir always tries to visit the controller named "application" after i type "http://example.com/application".

I've added the next:

RewriteRule ^(.*)$ index.php/$1 [PT,L]
RewriteRule ^$ index.php/$1 [PT,L]

Which is working perfectly!

The issue was using the hosting server. It didn't handle the PT properly and needed to include above lines.

Everything labored fine:

However, the next didn't work:

Appears such as the index.php has not been added when little else were passed. Hence the road:

RewriteRule ^$ index.php/$1 [PT,L]