<IfModule mod_rewrite.c>
     RewriteEngine On
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteCond $1 !^(xajax_js)
     RewriteRule ^(.*)$ /crm-agro/index.php/$1 [L]
 </IfModule>

 <IfModule !mod_rewrite.c>
     ErrorDocument 404 /crm-agro/index.php
 </IfModule>