2
Colleagues.
I have a system that is inside the following directory. www.site.com.br/crm/system/ I would like that when typing www.site.com.br/crm, it was directed to the system folder, but without changing the url, continuing www.site.com.br/crm. I have the following code below, but it’s 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]