.Htaccess redirects even with nothing configured

0

Well, I recently asked a question right here in the Stack ( Questions in .htacess ) about a bit of htaccess to solve a problem I'm having in the company.

After giving a good study and begin to understand +/- how things happen I can not find a solution to the following code:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} (\.php)$

#RewriteBase /projetos/c/*****/dev/acompanhamentoobra/
RewriteBase /acompanhamentoobra/

RewriteRule ^(.+)$ index.php?path=$1 [QSA,L]

The problem is as follows, we have the site root folder (www. ****. com) and several subfolders, all subfolders work and redirect normally but times a specific (follow up) than anything that I try it does not work.

For example: I have this .htaccess but if I open the file and delete all the content it still continues with the same stream as if it had not changed anything in the content, / p>

The root folder of the site has 1 .htaccess and the emptyfolder in thefolderfolder we have the one that showed the code.

Can any of you see a problem in this code? If you see, please show me !!!

    
asked by anonymous 30.11.2016 / 13:39

1 answer

0

I probably found the solution to the problem,

As the same project worked locally then I started to think it was a server error, I tried several and several codes in htaccess and all worked perfectly, but when they were part of mod_rewrite the operation just stopped.

Going deeper I found the function:

<?php
print_r(apache_get_modules());
?>

"If the function is not defined, it is because the apache extension is not enabled in php."

    
30.11.2016 / 14:31