configure htaccess to access from within other folders the system

1

I have the following domain meusite.com.br inside the root directory I have the "support" folder but when I type in the browser meusite.com.br/suporte it returns me a blank page. I believe this error is because of my htaccess. What am I doing wrong?

It looks like this:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/?(api)/
RewriteRule .* index.php [PT,L]

Inside the api folder I have another htaccess:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [PT,L]

The system runs perfectly if I put it in the root folder, but that's not what I want, because there, my site is already there.

    
asked by anonymous 28.07.2017 / 21:23

0 answers