I want to create a custom 404 page, but I cannot seem to override the 404 which is in Wordpress itself. The reason I want a custom 404 page is that if I get 404 within my subdirectories I get directed to my wordpress-site's 404. I'd rather have a 404 for my whole domain.
I've only found solutions to do this within Wordpress-pages etc, but do I really have to? I guess my problem is the .htaccess-file, however if I mess this one up, my links will be broken on my Wordpress-site.
My .htaccess looks like this (although the first line is the one I want to add, but wordpress doesn't seem to care).
ErrorDocument 404 /404page.php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
In short: My Wordpress-site is on the root of my domain and its 404 page is shown on all subdomains, I want to override this with my own.