Do you use php via mod_proxy_fcgi?
Could be possible that the .htaccess file is never honoured since the request was proxied before.
Kind regards,
Tobias Adolph
Von: Rose, John B <jbrose@xxxxxxx>
Gesendet: Mittwoch, 22. Juli 2015 17:05
An: users@xxxxxxxxxxxxxxxx
Betreff: Rewrite, .php files and PHP-FPMRed Hat 7Apache 2.4PHP-FPM
We are having some trouble getting Rewrite to work with Apache 2.4/PHP-FPM
In other words, it isn't successfully working.
Our test example:
The .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index2.html$ index.html
RewriteRule ^index2.php$ index.php
</IfModule>
Here is the content of index.php(In other words that is the text in the file, in addition to being the name):
"index.php"
Here is the content of index2.php:
"index2.php"
If we go to index2.php, we get "index2.php" which indicates the mod_rewrite is not working on php request.
Any suggestions on addressing the above problem?
Thanks