I'm using a custom error handing system.
Example .htaccess file command:
ErrorDocument 404 /error-deal.php?code=404
The error-deal.php file is present and processes $_GET variables as it should if I enter the URL directly.
Pages with file extensions don't trigger the .htaccess redirect to the error page:
https://example.com/does-not-exist.php
And yet URLs without the extension do...
https://example.com/does-not-exist
What am I missing here?
Other rewrite rules are:
#force https
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NC]
#redirect all www to non www
RewriteCond %{HTTP_HOST} ^www.donbur.co.uk$
RewriteRule (.*) https://donbur.co.uk/$1 [R=301,L]
#URL re-writes for dynamic pages
#to handle all news requests
RewriteRule ^news/([^/]*)$ /gb-en/news/article.php?title=$1 [L]
#to handle all feature requests
RewriteRule ^features/([^/]*)$ /gb-en/features/feature.php?title=$1 [L]