I've my joomla in http://project/ and today I wish to have http://project/zf-project/ What httaccess must i use? And what alterations in the code?

I've carried this out by

  1. Not altering the ZF .htaccess
  2. Putting my ZF public documents inside /public/zf-project rather than /public including putting the ZF .htaccess file in /public/zf-project

Carrying this out labored acceptable for me without needing to change other things. Perhaps you have attempted this?

EDIT

You could attempt contributing to your Joomla .htaccess

 RewriteRule ^(zf-project) - [L]

Following the line which reads

 RewriteEngine On

You should use the next .htaccess. It'll operate in subdirectories:

RewriteEngine On

RewriteCond % -s [OR]

RewriteCond % -l [OR]

RewriteCond % -d

RewriteRule ^.*$ - [NC,L]

RewriteRule ^.*$ index.php [NC,L]

Remember that you need to apply baseUrl for your links, css files etc. This really is essential to range from the sub-directory like a prefix for your web addresses.

A few of the classes in ZF already does that they like the Url view assistant.