Access to subfolders in URL is being blocked by .htaccess

1

Hello, I have a url dem a system in which I have a test_ environment in a subfolder inside the system directory.

The .htaccess directs the index to an "app.php" file which is the autoload file of the system.

Targeting it in the " link " folder is . htaccess like this:

DirectoryIndex app.php
<IfModule mod_rewrite.c>
     #Habilita o Módulo de Reescrita
     RewriteEngine On

     #Define a pasta da raiz
     RewriteBase /ambiente_testes/web/

     #Se a URL apontar para um arquivo, vai diretamente para ele
     RewriteCond %{REQUEST_FILENAME} !-f 

     #Regras de redirecionamento
     RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>

When you sign in to " link " it does not redirect to the app. php , and returns a 302 error, in chrome it redirects automatically after error 302 to a 404 error and thus redirects the request to " link "

Does anyone have any idea how I can be solving this?

    
asked by anonymous 07.05.2018 / 18:56

0 answers