Colleagues.
I have a system that is within the following directory. www.site.com.br/crm/sistema/ I would like that when entering www.site.com.br/crm, be directed to the system folder, but without changing the url, continuing www.site.com.br/crm. I have the following code but it is not working:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?site.com.br/crm$
RewriteCond %{REQUEST_URI} !^/sistema/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /sistema/$1/
RewriteCond %{HTTP_HOST} ^(www.)?site.com.br/crm$
RewriteRule ^(/)?$ sistema/index.php [L]