Así que he visto problemas similares a este, pero nada responde a la pregunta con Apache/PHP-FPM
Lo que estoy tratando de hacer: reenviar todas mis solicitudes a index.php sin usar mod_rewrite.
Estoy usando la directiva FallbackResource dentro de mi vhost.
Recurso alternativo /index.php
Lo que sucede:
mysite.com/anything --> index.php mysite.com/anything.css --> index.php mysite.com/anything.html --> index.php mysite.com/anything.php --> 404 error mysite.com/anything/anything.php --> index.phpCreo que php-fpm es culpable de alguna manera:
# Redirect to local php-fpm if mod_php is not available <IfModule !mod_php7.c> <IfModule proxy_fcgi_module> # Enable http authorization headers <IfModule setenvif_module> SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 </IfModule> <FilesMatch ".+\.ph(ar|p|tml)$"> SetHandler "proxy:unix:/run/php/php7.4-fpm.sock|fcgi://localhost" </FilesMatch> <FilesMatch ".+\.phps$"> # Deny access to raw php sources by default # To re-enable it's recommended to enable access to the files # only in specific virtual host or directory Require all denied </FilesMatch> # Deny access to files without filename (eg '.php') <FilesMatch "^\.ph(ar|p|ps|tml)$"> Require all denied </FilesMatch> </IfModule> </IfModule> porque noté que no son solo archivos .php sino también todos los que se enumeran aquí: <FilesMatch ".+\.ph(ar|p|tml)$">