I'm having issues getting the proper 404 page (templates/MY_TEMPLATE/error.php) to work.
I've spent hours reading through and trying every example or fix listed on Stack Exchange and other sites with no luck.
Such threads as: return 404 header with 404 page and 404 HTTP codes in Joomla
I'm using the default .htaccess supplied with Joomla found here https://github.com/joomla/joomla-cms/blob/staging/htaccess.txt and in my global configuration I have url rewriting and search engine friendly urls enabled.
I've tried with url rewriting off, search engine friendly urls off, redirect plugin disabled, renaming .htaccess to htaccess.txt, setting header and exit in error.php (although, I don't think error.php is even being loaded since everything redirects immediately to the homepage).
I admittedly know little about .htaccess, but I have tried commenting some of the rewrite rules out and this one in particular
RewriteRule .* index.php [L]
is properly redirecting all real 404s to the error page, but index.php is present in all of my urls which is not desirable.
If anyone could offer any insight I would be most appreciative, thank you.