This has been driving me crazy! Im using wordpress and in my htaccess I have the following:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
At the very top of my htaccess I have tried to put; Errordocument /index.php?error=404 and other alternative directions but they either result in page not redirecting or an internal server error etc.
I have seen that many of these have been solved here but I have not found a case where someone has the same code in their htaccess. I have tried to remove
RewriteRule ^index\.php$ - [L]
and
RewriteRule . /index.php [L]
Which gives more errors explaining there was a 404 error trying to find my 404.php or at line 10 of my 404.php at getheader() and it also removes my BWP sitemap entirely. I am using a child theme but i have copied the 404.php/header/footer/index to the childtheme to make things easy. Any help will be appreciated
Thanks