Htaccess
RewriteEngine On
FallbackResource /errordoc.php
FallbackResource load content from errordoc.php when the file or data does not exist in the server. It working fine for all non-exist url except url ending with .php. When url ending with .php (example.com/something.php) than it ignore FallbackResource
How to make FallbackResource also work for url ending with .php