You should create a .htaccess file in your subdomain and add this line: ErrorDocument 404 /404.html Code (markup): When a page is not found that will be redirected to 404.html which also should be available on your subdomain.
404 Errors on non-primary domains - Non-primary domains that point to your hosting account's root do not require any special configuration. For example, if you used this .htaccess file: ErrorDocument 404 /notfound.php Code (markup):