I have a theme with a custom 404.php page, which displays a nice message when a page is not found in the non-amp version.
But for my amp pages, if I enter a page URL that does not exist (e.g. example.com/xxxx/amp) then I do not see anything displayed. Even though AMP Settings > Translation Panel > 404 Error says “Oops! That page can’t be found.” But the actual page displayed is completely blank.
I have tried adding the following code to my .htaccess file:
ErrorDocument 404 "<H1>Page not found</H1>"
… but that doesn’t work either.
No-one else seems to have reported this problem and I am at a loss as to how to resolve this problem. Any suggestions would be appreciated, thanks.
- The topic ‘404 error message not displaying in amp’ is closed to new replies.